UI/FormRegionPrivacyStatus.Designer.cs
author Dean Looyengoed
Tue, 16 Feb 2016 03:31:29 +0100
changeset 438 ac133be97883
parent 419 3d879cae95dc
child 439 5f437817c80d
permissions -rw-r--r--
Add method to determine if the privacy status form region is displayed in an inspector.
Use above method to set background color if in explorer vs. inspector.
     1 ´╗┐namespace pEp
     2 {
     3     [System.ComponentModel.ToolboxItemAttribute(false)]
     4     partial class FormRegionPrivacyStatus : Microsoft.Office.Tools.Outlook.FormRegionBase
     5     {
     6         public FormRegionPrivacyStatus(Microsoft.Office.Interop.Outlook.FormRegion formRegion)
     7             : base(Globals.Factory, formRegion)
     8         {
     9             this.InitializeComponent();
    10         }
    11 
    12         /// <summary> 
    13         /// Required designer variable.
    14         /// </summary>
    15         private System.ComponentModel.IContainer components = null;
    16 
    17         /// <summary> 
    18         /// Clean up any resources being used.
    19         /// </summary>
    20         protected override void Dispose(bool disposing)
    21         {
    22             if (disposing && (components != null))
    23             {
    24                 components.Dispose();
    25             }
    26             base.Dispose(disposing);
    27         }
    28 
    29         #region Component Designer generated code
    30 
    31         /// <summary> 
    32         /// Required method for Designer support - do not modify 
    33         /// the contents of this method with the code editor.
    34         /// </summary>
    35         private void InitializeComponent()
    36         {
    37             this.components = new System.ComponentModel.Container();
    38             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRegionPrivacyStatus));
    39             this.TimerRefresh = new System.Windows.Forms.Timer(this.components);
    40             this.PanelPrivacyStatus = new System.Windows.Forms.Panel();
    41             this.PictureBoxLogo = new System.Windows.Forms.PictureBox();
    42             this.ButtonPrivacyStatus = new System.Windows.Forms.Button();
    43             this.ToolTip1 = new System.Windows.Forms.ToolTip(this.components);
    44             this.PanelPrivacyStatus.SuspendLayout();
    45             ((System.ComponentModel.ISupportInitialize)(this.PictureBoxLogo)).BeginInit();
    46             this.SuspendLayout();
    47             // 
    48             // TimerRefresh
    49             // 
    50             this.TimerRefresh.Tick += new System.EventHandler(this.TimerRefresh_Tick);
    51             // 
    52             // PanelPrivacyStatus
    53             // 
    54             resources.ApplyResources(this.PanelPrivacyStatus, "PanelPrivacyStatus");
    55             this.PanelPrivacyStatus.BackColor = System.Drawing.Color.Transparent;
    56             this.PanelPrivacyStatus.Controls.Add(this.PictureBoxLogo);
    57             this.PanelPrivacyStatus.Controls.Add(this.ButtonPrivacyStatus);
    58             this.PanelPrivacyStatus.Name = "PanelPrivacyStatus";
    59             // 
    60             // PictureBoxLogo
    61             // 
    62             resources.ApplyResources(this.PictureBoxLogo, "PictureBoxLogo");
    63             this.PictureBoxLogo.Image = global::pEp.Properties.Resources.ImageLogoMedium;
    64             this.PictureBoxLogo.Name = "PictureBoxLogo";
    65             this.PictureBoxLogo.TabStop = false;
    66             // 
    67             // ButtonPrivacyStatus
    68             // 
    69             this.ButtonPrivacyStatus.BackColor = System.Drawing.Color.Gainsboro;
    70             resources.ApplyResources(this.ButtonPrivacyStatus, "ButtonPrivacyStatus");
    71             this.ButtonPrivacyStatus.Name = "ButtonPrivacyStatus";
    72             this.ToolTip1.SetToolTip(this.ButtonPrivacyStatus, resources.GetString("ButtonPrivacyStatus.ToolTip"));
    73             this.ButtonPrivacyStatus.UseVisualStyleBackColor = false;
    74             // 
    75             // FormRegionPrivacyStatus
    76             // 
    77             resources.ApplyResources(this, "$this");
    78             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    79             this.BackColor = System.Drawing.SystemColors.ButtonFace;
    80             this.Controls.Add(this.PanelPrivacyStatus);
    81             this.Name = "FormRegionPrivacyStatus";
    82             this.FormRegionShowing += new System.EventHandler(this.FormRegionPrivacyStatus_FormRegionShowing);
    83             this.FormRegionClosed += new System.EventHandler(this.FormRegionPrivacyStatus_FormRegionClosed);
    84             this.PanelPrivacyStatus.ResumeLayout(false);
    85             ((System.ComponentModel.ISupportInitialize)(this.PictureBoxLogo)).EndInit();
    86             this.ResumeLayout(false);
    87 
    88         }
    89 
    90         #endregion
    91 
    92         #region Form Region Designer generated code
    93 
    94         /// <summary> 
    95         /// Required method for Designer support - do not modify 
    96         /// the contents of this method with the code editor.
    97         /// </summary>
    98         private static void InitializeManifest(Microsoft.Office.Tools.Outlook.FormRegionManifest manifest, Microsoft.Office.Tools.Outlook.Factory factory)
    99         {
   100             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRegionPrivacyStatus));
   101             manifest.DisplayAfter = "pEp.PreviewUnencrypted";
   102             manifest.FormRegionName = resources.GetString("FormRegionPrivacyStatus.Manifest.FormRegionName");
   103             manifest.FormRegionType = Microsoft.Office.Tools.Outlook.FormRegionType.Adjoining;
   104 
   105         }
   106 
   107         #endregion
   108 
   109         private System.Windows.Forms.Timer TimerRefresh;
   110         private System.Windows.Forms.Panel PanelPrivacyStatus;
   111         private System.Windows.Forms.Button ButtonPrivacyStatus;
   112         private System.Windows.Forms.PictureBox PictureBoxLogo;
   113         private System.Windows.Forms.ToolTip ToolTip1;
   114 
   115         public partial class FormRegionPrivacyStatusFactory : Microsoft.Office.Tools.Outlook.IFormRegionFactory
   116         {
   117             public event Microsoft.Office.Tools.Outlook.FormRegionInitializingEventHandler FormRegionInitializing;
   118 
   119             private Microsoft.Office.Tools.Outlook.FormRegionManifest _Manifest;
   120 
   121             [System.Diagnostics.DebuggerNonUserCodeAttribute()]
   122             public FormRegionPrivacyStatusFactory()
   123             {
   124                 this._Manifest = Globals.Factory.CreateFormRegionManifest();
   125                 FormRegionPrivacyStatus.InitializeManifest(this._Manifest, Globals.Factory);
   126                 this.FormRegionInitializing += new Microsoft.Office.Tools.Outlook.FormRegionInitializingEventHandler(this.FormRegionPrivacyStatus_FormRegionInitializing);
   127             }
   128 
   129             [System.Diagnostics.DebuggerNonUserCodeAttribute()]
   130             public Microsoft.Office.Tools.Outlook.FormRegionManifest Manifest
   131             {
   132                 get
   133                 {
   134                     return this._Manifest;
   135                 }
   136             }
   137 
   138             [System.Diagnostics.DebuggerNonUserCodeAttribute()]
   139             Microsoft.Office.Tools.Outlook.IFormRegion Microsoft.Office.Tools.Outlook.IFormRegionFactory.CreateFormRegion(Microsoft.Office.Interop.Outlook.FormRegion formRegion)
   140             {
   141                 FormRegionPrivacyStatus form = new FormRegionPrivacyStatus(formRegion);
   142                 form.Factory = this;
   143                 return form;
   144             }
   145 
   146             [System.Diagnostics.DebuggerNonUserCodeAttribute()]
   147             byte[] Microsoft.Office.Tools.Outlook.IFormRegionFactory.GetFormRegionStorage(object outlookItem, Microsoft.Office.Interop.Outlook.OlFormRegionMode formRegionMode, Microsoft.Office.Interop.Outlook.OlFormRegionSize formRegionSize)
   148             {
   149                 throw new System.NotSupportedException();
   150             }
   151 
   152             [System.Diagnostics.DebuggerNonUserCodeAttribute()]
   153             bool Microsoft.Office.Tools.Outlook.IFormRegionFactory.IsDisplayedForItem(object outlookItem, Microsoft.Office.Interop.Outlook.OlFormRegionMode formRegionMode, Microsoft.Office.Interop.Outlook.OlFormRegionSize formRegionSize)
   154             {
   155                 if (this.FormRegionInitializing != null)
   156                 {
   157                     Microsoft.Office.Tools.Outlook.FormRegionInitializingEventArgs cancelArgs = Globals.Factory.CreateFormRegionInitializingEventArgs(outlookItem, formRegionMode, formRegionSize, false);
   158                     this.FormRegionInitializing(this, cancelArgs);
   159                     return !cancelArgs.Cancel;
   160                 }
   161                 else
   162                 {
   163                     return true;
   164                 }
   165             }
   166 
   167             [System.Diagnostics.DebuggerNonUserCodeAttribute()]
   168             Microsoft.Office.Tools.Outlook.FormRegionKindConstants Microsoft.Office.Tools.Outlook.IFormRegionFactory.Kind
   169             {
   170                 get
   171                 {
   172                     return Microsoft.Office.Tools.Outlook.FormRegionKindConstants.WindowsForms;
   173                 }
   174             }
   175         }
   176     }
   177 
   178     partial class WindowFormRegionCollection
   179     {
   180         internal FormRegionPrivacyStatus FormRegionPrivacyStatus
   181         {
   182             get
   183             {
   184                 foreach (var item in this)
   185                 {
   186                     if (item.GetType() == typeof(FormRegionPrivacyStatus))
   187                         return (FormRegionPrivacyStatus)item;
   188                 }
   189                 return null;
   190             }
   191         }
   192     }
   193 }