Commit 56a7ec98 authored by Thomas's avatar Thomas
Browse files

Add FormRegionDPE

parent cb5e8c0a

namespace pEp
{
[System.ComponentModel.ToolboxItemAttribute(false)]
partial class FormRegionDPE : Microsoft.Office.Tools.Outlook.FormRegionBase
{
public FormRegionDPE(Microsoft.Office.Interop.Outlook.FormRegion formRegion)
: base(Globals.Factory, 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 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, Microsoft.Office.Tools.Outlook.Factory factory)
{
manifest.FormRegionType = Microsoft.Office.Tools.Outlook.FormRegionType.Replacement;
manifest.Title = "FormRegionDPE";
manifest.FormRegionName = "FormRegionDPE";
}
#endregion
#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()
{
components = new System.ComponentModel.Container();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.FormRegionShowing += new System.EventHandler(this.FormRegionDPE_FormRegionShowing);
this.FormRegionClosed += new System.EventHandler(this.FormRegionDPE_FormRegionClosed);
}
#endregion
public partial class FormRegionDPEFactory : Microsoft.Office.Tools.Outlook.IFormRegionFactory
{
public event Microsoft.Office.Tools.Outlook.FormRegionInitializingEventHandler FormRegionInitializing;
private Microsoft.Office.Tools.Outlook.FormRegionManifest _Manifest;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public FormRegionDPEFactory()
{
this._Manifest = Globals.Factory.CreateFormRegionManifest();
FormRegionDPE.InitializeManifest(this._Manifest, Globals.Factory);
this.FormRegionInitializing += new Microsoft.Office.Tools.Outlook.FormRegionInitializingEventHandler(this.FormRegionDPEFactory_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)
{
FormRegionDPE form = new FormRegionDPE(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 = Globals.Factory.CreateFormRegionInitializingEventArgs(outlookItem, formRegionMode, formRegionSize, false);
this.FormRegionInitializing(this, cancelArgs);
return !cancelArgs.Cancel;
}
else
{
return true;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
Microsoft.Office.Tools.Outlook.FormRegionKindConstants Microsoft.Office.Tools.Outlook.IFormRegionFactory.Kind
{
get
{
return Microsoft.Office.Tools.Outlook.FormRegionKindConstants.WindowsForms;
}
}
}
}
partial class WindowFormRegionCollection
{
internal FormRegionDPE FormRegionDPE
{
get
{
foreach (var item in this)
{
if (item.GetType() == typeof(FormRegionDPE))
return (FormRegionDPE)item;
}
return null;
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Office = Microsoft.Office.Core;
using Outlook = Microsoft.Office.Interop.Outlook;
namespace pEp
{
partial class FormRegionDPE
{
#region Form Region Factory
[Microsoft.Office.Tools.Outlook.FormRegionMessageClass("IPM.Note.DPE")]
[Microsoft.Office.Tools.Outlook.FormRegionName("pEpForOutlook.FormRegionDPE")]
public partial class FormRegionDPEFactory
{
// Occurs before the form region is initialized.
// To prevent the form region from appearing, set e.Cancel to true.
// Use e.OutlookItem to get a reference to the current Outlook item.
private void FormRegionDPEFactory_FormRegionInitializing(object sender, Microsoft.Office.Tools.Outlook.FormRegionInitializingEventArgs e)
{
}
}
#endregion
// Occurs before the form region is displayed.
// Use this.OutlookItem to get a reference to the current Outlook item.
// Use this.OutlookFormRegion to get a reference to the form region.
private void FormRegionDPE_FormRegionShowing(object sender, System.EventArgs e)
{
}
// Occurs when the form region is closed.
// Use this.OutlookItem to get a reference to the current Outlook item.
// Use this.OutlookFormRegion to get a reference to the form region.
private void FormRegionDPE_FormRegionClosed(object sender, System.EventArgs e)
{
}
}
}
...@@ -419,6 +419,12 @@ ...@@ -419,6 +419,12 @@
<DependentUpon>Resources.tr.resx</DependentUpon> <DependentUpon>Resources.tr.resx</DependentUpon>
</Compile> </Compile>
<Compile Include="Sequoia.cs" /> <Compile Include="Sequoia.cs" />
<Compile Include="UI\FormRegionDPE.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="UI\FormRegionDPE.Designer.cs">
<DependentUpon>FormRegionDPE.cs</DependentUpon>
</Compile>
<Compile Include="UI\Models\GroupWizard.cs" /> <Compile Include="UI\Models\GroupWizard.cs" />
<Compile Include="UI\Models\CustomMessageBox.cs" /> <Compile Include="UI\Models\CustomMessageBox.cs" />
<Compile Include="UI\Models\InputMessageBox.cs" /> <Compile Include="UI\Models\InputMessageBox.cs" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment