|
namespace CSOutlookUIDesigner
{
[System.ComponentModel.ToolboxItemAttribute(false)]
partial class MyFormRegion : Microsoft.Office.Tools.Outlook.FormRegionControl
{
public MyFormRegion(Microsoft.Office.Interop.Outlook.FormRegion formRegion)
: base(formRegion)
{
this.InitializeComponent();
}
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.txtContent = new System.Windows.Forms.TextBox();
this.tmr = new System.Windows.Forms.Timer(this.components);
this.SuspendLayout();
//
// txtContent
//
this.txtContent.Dock = System.Windows.Forms.DockStyle.Fill;
this.txtContent.Location = new System.Drawing.Point(0, 0);
this.txtContent.Multiline = true;
this.txtContent.Name = "txtContent";
this.txtContent.ReadOnly = true;
this.txtContent.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.txtContent.Size = new System.Drawing.Size(523, 280);
this.txtContent.TabIndex = 0;
//
// tmr
//
this.tmr.Interval = 1000;
this.tmr.Tick += new System.EventHandler(this.tmr_Tick);
//
// MyFormRegion
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.txtContent);
this.Name = "MyFormRegion";
this.Size = new System.Drawing.Size(523, 280);
this.FormRegionClosed += new System.EventHandler(this.MyFormRegion_FormRegionClosed);
this.FormRegionShowing += new System.EventHandler(this.MyFormRegion_FormRegionShowing);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
#region Form Region Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private static void InitializeManifest(Microsoft.Office.Tools.Outlook.FormRegionManifest manifest)
{
manifest.Description = "Displays the mail HTML source.";
manifest.FormRegionName = "Mail HTML View";
manifest.FormRegionType = Microsoft.Office.Tools.Outlook.FormRegionType.Adjoining;
manifest.Title = "Mail HTML View";
manifest.Version = "1.0";
}
#endregion
private System.Windows.Forms.TextBox txtContent;
private System.Windows.Forms.Timer tmr;
public partial class MyFormRegionFactory : Microsoft.Office.Tools.Outlook.IFormRegionFactory
{
public event System.EventHandler<Microsoft.Office.Tools.Outlook.FormRegionInitializingEventArgs> FormRegionInitializing;
private Microsoft.Office.Tools.Outlook.FormRegionManifest _Manifest;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public MyFormRegionFactory()
{
this._Manifest = new Microsoft.Office.Tools.Outlook.FormRegionManifest();
MyFormRegion.InitializeManifest(this._Manifest);
this.FormRegionInitializing += new System.EventHandler<Microsoft.Office.Tools.Outlook.FormRegionInitializingEventArgs>(this.MyFormRegionFactory_FormRegionInitializing);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public Microsoft.Office.Tools.Outlook.FormRegionManifest Manifest
{
get
{
return this._Manifest;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
Microsoft.Office.Tools.Outlook.IFormRegion Microsoft.Office.Tools.Outlook.IFormRegionFactory.CreateFormRegion(Microsoft.Office.Interop.Outlook.FormRegion formRegion)
{
MyFormRegion form = new MyFormRegion(formRegion);
form.Factory = this;
return form;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
byte[] Microsoft.Office.Tools.Outlook.IFormRegionFactory.GetFormRegionStorage(object outlookItem, Microsoft.Office.Interop.Outlook.OlFormRegionMode formRegionMode, Microsoft.Office.Interop.Outlook.OlFormRegionSize formRegionSize)
{
throw new System.NotSupportedException();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
bool Microsoft.Office.Tools.Outlook.IFormRegionFactory.IsDisplayedForItem(object outlookItem, Microsoft.Office.Interop.Outlook.OlFormRegionMode formRegionMode, Microsoft.Office.Interop.Outlook.OlFormRegionSize formRegionSize)
{
if (this.FormRegionInitializing != null)
{
Microsoft.Office.Tools.Outlook.FormRegionInitializingEventArgs cancelArgs = new Microsoft.Office.Tools.Outlook.FormRegionInitializingEventArgs(outlookItem, formRegionMode, formRegionSize, false);
this.FormRegionInitializing(this, cancelArgs);
return !cancelArgs.Cancel;
}
else
{
return true;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
string Microsoft.Office.Tools.Outlook.IFormRegionFactory.Kind
{
get
{
return Microsoft.Office.Tools.Outlook.FormRegionKindConstants.WindowsForms;
}
}
}
}
partial class WindowFormRegionCollection
{
internal MyFormRegion MyFormRegion
{
get
{
return this.FindFirst<MyFormRegion>();
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Microsoft All-In-One Code Framework delineates the framework and skeleton of Microsoft development techniques through typical sample codes in three popular programming languages (Visual C#, VB.NET, Visual C++). Each sample is elaborately selected, composed, and documented to demonstrate one frequently-asked, tested or used coding scenario based on our support experience in MSDN newsgroups and forums. If you are a software developer, you can fill the skeleton with blood, muscle and soul. If you are a software tester or a support engineer like us, you may extend the sample codes a little to fit your specific test scenario or refer your customer to this project if the customer's question coincides with what we collected.
http://cfx.codeplex.com/