UI/FormRegionPrivacyStatus.Designer.cs
branchExperimental_WPF
changeset 1086 5896c50b631c
parent 1069 d919eef2f816
child 1092 67be732b0c31
     1.1 --- a/UI/FormRegionPrivacyStatus.Designer.cs	Wed Jul 20 12:08:45 2016 +0200
     1.2 +++ b/UI/FormRegionPrivacyStatus.Designer.cs	Wed Jul 20 14:01:57 2016 +0200
     1.3 @@ -41,57 +41,42 @@
     1.4          private void InitializeComponent()
     1.5          {
     1.6              this.components = new System.ComponentModel.Container();
     1.7 -            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRegionPrivacyStatus));
     1.8              this.TimerRefresh = new System.Windows.Forms.Timer(this.components);
     1.9              this.PanelPrivacyStatus = new System.Windows.Forms.Panel();
    1.10 -            this.LinkLabelUpgrade = new System.Windows.Forms.LinkLabel();
    1.11 -            this.PictureBoxLogo = new System.Windows.Forms.PictureBox();
    1.12 -            this.ToolTip1 = new System.Windows.Forms.ToolTip(this.components);
    1.13 -            this.ElementHostPrivacyView = new System.Windows.Forms.Integration.ElementHost();
    1.14 -            this.PrivacyViewChild = new pEp.UI.PrivacyView();
    1.15 +            this.ElementHostFormControl = new System.Windows.Forms.Integration.ElementHost();
    1.16 +            this.FormControlPrivacyStatusChild = new pEp.UI.FormControlPrivacyStatus();
    1.17              this.PanelPrivacyStatus.SuspendLayout();
    1.18 -            ((System.ComponentModel.ISupportInitialize)(this.PictureBoxLogo)).BeginInit();
    1.19              this.SuspendLayout();
    1.20              // 
    1.21              // PanelPrivacyStatus
    1.22              // 
    1.23 -            resources.ApplyResources(this.PanelPrivacyStatus, "PanelPrivacyStatus");
    1.24              this.PanelPrivacyStatus.BackColor = System.Drawing.Color.Transparent;
    1.25 -            this.PanelPrivacyStatus.Controls.Add(this.ElementHostPrivacyView);
    1.26 -            this.PanelPrivacyStatus.Controls.Add(this.LinkLabelUpgrade);
    1.27 -            this.PanelPrivacyStatus.Controls.Add(this.PictureBoxLogo);
    1.28 +            this.PanelPrivacyStatus.Controls.Add(this.ElementHostFormControl);
    1.29 +            this.PanelPrivacyStatus.Dock = System.Windows.Forms.DockStyle.Fill;
    1.30 +            this.PanelPrivacyStatus.Location = new System.Drawing.Point(0, 0);
    1.31              this.PanelPrivacyStatus.Name = "PanelPrivacyStatus";
    1.32 +            this.PanelPrivacyStatus.Size = new System.Drawing.Size(500, 38);
    1.33 +            this.PanelPrivacyStatus.TabIndex = 0;
    1.34              // 
    1.35 -            // LinkLabelUpgrade
    1.36 +            // ElementHostFormControl
    1.37              // 
    1.38 -            resources.ApplyResources(this.LinkLabelUpgrade, "LinkLabelUpgrade");
    1.39 -            this.LinkLabelUpgrade.Name = "LinkLabelUpgrade";
    1.40 -            this.LinkLabelUpgrade.TabStop = true;
    1.41 -            // 
    1.42 -            // PictureBoxLogo
    1.43 -            // 
    1.44 -            resources.ApplyResources(this.PictureBoxLogo, "PictureBoxLogo");
    1.45 -            this.PictureBoxLogo.Image = global::pEp.Properties.Resources.ImageLogoMedium;
    1.46 -            this.PictureBoxLogo.Name = "PictureBoxLogo";
    1.47 -            this.PictureBoxLogo.TabStop = false;
    1.48 -            // 
    1.49 -            // ElementHostPrivacyView
    1.50 -            // 
    1.51 -            resources.ApplyResources(this.ElementHostPrivacyView, "ElementHostPrivacyView");
    1.52 -            this.ElementHostPrivacyView.Name = "ElementHostPrivacyView";
    1.53 -            this.ElementHostPrivacyView.Child = this.PrivacyViewChild;
    1.54 +            this.ElementHostFormControl.Dock = System.Windows.Forms.DockStyle.Fill;
    1.55 +            this.ElementHostFormControl.Location = new System.Drawing.Point(0, 0);
    1.56 +            this.ElementHostFormControl.Name = "ElementHostFormControl";
    1.57 +            this.ElementHostFormControl.Size = new System.Drawing.Size(500, 38);
    1.58 +            this.ElementHostFormControl.TabIndex = 0;
    1.59 +            this.ElementHostFormControl.Child = this.FormControlPrivacyStatusChild;
    1.60              // 
    1.61              // FormRegionPrivacyStatus
    1.62              // 
    1.63 -            resources.ApplyResources(this, "$this");
    1.64 +            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    1.65              this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    1.66              this.Controls.Add(this.PanelPrivacyStatus);
    1.67              this.Name = "FormRegionPrivacyStatus";
    1.68 +            this.Size = new System.Drawing.Size(500, 38);
    1.69              this.FormRegionShowing += new System.EventHandler(this.FormRegionPrivacyStatus_FormRegionShowing);
    1.70              this.FormRegionClosed += new System.EventHandler(this.FormRegionPrivacyStatus_FormRegionClosed);
    1.71              this.PanelPrivacyStatus.ResumeLayout(false);
    1.72 -            this.PanelPrivacyStatus.PerformLayout();
    1.73 -            ((System.ComponentModel.ISupportInitialize)(this.PictureBoxLogo)).EndInit();
    1.74              this.ResumeLayout(false);
    1.75  
    1.76          }
    1.77 @@ -106,22 +91,17 @@
    1.78          /// </summary>
    1.79          private static void InitializeManifest(Microsoft.Office.Tools.Outlook.FormRegionManifest manifest, Microsoft.Office.Tools.Outlook.Factory factory)
    1.80          {
    1.81 -            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRegionPrivacyStatus));
    1.82              manifest.DisplayAfter = "pEp.PreviewUnencrypted";
    1.83 -            manifest.FormRegionName = resources.GetString("FormRegionPrivacyStatus.Manifest.FormRegionName");
    1.84 +            manifest.FormRegionName = pEp.Properties.Resources.PrivacyStatus_FormText; // Modify to dynamically load the name
    1.85              manifest.FormRegionType = Microsoft.Office.Tools.Outlook.FormRegionType.Adjoining;
    1.86 -
    1.87          }
    1.88  
    1.89          #endregion
    1.90  
    1.91          private System.Windows.Forms.Timer TimerRefresh;
    1.92          private System.Windows.Forms.Panel PanelPrivacyStatus;
    1.93 -        private System.Windows.Forms.PictureBox PictureBoxLogo;
    1.94 -        private System.Windows.Forms.ToolTip ToolTip1;
    1.95 -        private System.Windows.Forms.LinkLabel LinkLabelUpgrade;
    1.96 -        private System.Windows.Forms.Integration.ElementHost ElementHostPrivacyView;
    1.97 -        private UI.PrivacyView PrivacyViewChild;
    1.98 +        private System.Windows.Forms.Integration.ElementHost ElementHostFormControl;
    1.99 +        private UI.FormControlPrivacyStatus FormControlPrivacyStatusChild;
   1.100  
   1.101          public partial class FormRegionPrivacyStatusFactory : Microsoft.Office.Tools.Outlook.IFormRegionFactory
   1.102          {