Ejemplo n.º 1
0
Archivo: test2.cs Proyecto: mono/gert
	static void Main ()
	{
		ComponentResourceManager crm = new ComponentResourceManager (
			typeof (MyComponent));

		MyComponent comp = new MyComponent ("Welcome", "System");

		try {
			crm.ApplyResources (comp, "$this", CultureInfo.InvariantCulture);
			Assert.Fail ("#A1");
		} catch (MissingManifestResourceException ex) {
			// Could not find any resources appropriate for the
			// specified culture or the neutral culture.  Make sure
			// "Mono.Tests.MyComponent.resources" was correctly
			// embedded or linked into assembly "test2" at compile
			// time, or that all the satellite assemblies required
			// are loadable and fully signed
			Assert.AreEqual (typeof (MissingManifestResourceException), ex.GetType (), "#A2");
			Assert.IsNull (ex.InnerException, "#A3");
			Assert.IsNotNull (ex.Message, "#A4");
#if NET_2_0
			Assert.IsTrue (ex.Message.IndexOf ("\"Mono.Tests.MyComponent.resources\"") != -1, "#A5");
#else
			Assert.IsTrue (ex.Message.IndexOf ("MyComponent.resources") != -1, "#A5");
#endif
			Assert.IsTrue (ex.Message.IndexOf ("\"test2\"") != -1, "#A6");
		}

		comp = new MyComponent ("Welcome", "System");
		crm.IgnoreCase = false;

		try {
			crm.ApplyResources (comp, "$this", new CultureInfo ("nl-BE"));
			Assert.Fail ("#B1");
		} catch (MissingManifestResourceException ex) {
			// Could not find any resources appropriate for the
			// specified culture or the neutral culture.  Make sure
			// "Mono.Tests.MyComponent.resources" was correctly
			// embedded or linked into assembly "test2" at compile
			// time, or that all the satellite assemblies required
			// are loadable and fully signed
			Assert.AreEqual (typeof (MissingManifestResourceException), ex.GetType (), "#B2");
			Assert.IsNull (ex.InnerException, "#B3");
			Assert.IsNotNull (ex.Message, "#B4");
#if NET_2_0
			Assert.IsTrue (ex.Message.IndexOf ("\"Mono.Tests.MyComponent.resources\"") != -1, "#B5");
#else
			Assert.IsTrue (ex.Message.IndexOf ("MyComponent.resources") != -1, "#B5");
#endif
			Assert.IsTrue (ex.Message.IndexOf ("\"test2\"") != -1, "#B6");
		}
	}
Ejemplo n.º 2
0
Archivo: test4.cs Proyecto: mono/gert
	static void Main ()
	{
		ComponentResourceManager crm = new ComponentResourceManager (
			typeof (MyComponent));

		Thread.CurrentThread.CurrentUICulture = new CultureInfo ("en-GB");
		Thread.CurrentThread.CurrentCulture = new CultureInfo ("ja-JP");

		MyComponent comp = new MyComponent ("Welcome", "System");
		crm.ApplyResources (comp, "$this", new CultureInfo ("fr-FR"));

		Assert.IsNotNull (comp.BackgroundImage, "#1");
#if NET_2_0
		Assert.IsNull (comp.Company, "#2");
#else
		Assert.IsNotNull (comp.Company, "#2");
		Assert.AreEqual ("Company (fr-FR)", comp.Company, "#3");
#endif
		Assert.AreEqual (0, comp.Interval, "#4");
		Assert.IsTrue (comp.Localizable, "#5");
		Assert.IsNotNull (comp.Name, "#6");
		Assert.AreEqual ("Component (fr)", comp.Name, "#7");
		Assert.IsNotNull (comp.Text, "#8");
		Assert.AreEqual ("Mono", comp.Text, "#9");
		Assert.IsNotNull (comp.Title, "#10");
		Assert.AreEqual ("Welcome", comp.Title, "#11");
		Assert.IsNotNull (comp.Zone, "#D12");
		Assert.AreEqual ("Zone (fr)", comp.Zone, "#D13");
	}
Ejemplo n.º 3
0
Archivo: test6.cs Proyecto: mono/gert
	static void Main ()
	{
		ComponentResourceManager crm = new ComponentResourceManager (
			typeof (MyComponent));

		MyComponent comp = new MyComponent ("Welcome", "System");
		crm.ApplyResources (comp, "$this", new CultureInfo ("nl-BE"));

		Assert.IsNotNull (comp.BackgroundImage, "#A1");
#if NET_2_0
		Assert.IsNull (comp.Company, "#A2");
#else
		Assert.IsNotNull (comp.Company, "#A2");
		Assert.AreEqual ("Company (NL-BE)", comp.Company, "#A3");
#endif
		Assert.AreEqual (0, comp.Interval, "#A4");
		Assert.IsTrue (comp.Localizable, "#A5");
		Assert.IsNull (comp.Name, "#A6");
		Assert.IsNotNull (comp.Text, "#A8");
		Assert.AreEqual ("Mono", comp.Text, "#A9");
		Assert.IsNotNull (comp.Title, "#A10");
		Assert.AreEqual ("Welcome", comp.Title, "#A11");
		Assert.IsNotNull (comp.Zone, "#A12");
		Assert.AreEqual ("Zone (NL-BE)", comp.Zone, "#A13");

		comp = new MyComponent ("Welcome", "System");
		crm = new ComponentResourceManager (typeof (MyComponent));
		crm.ApplyResources (comp, "$this", new CultureInfo ("ja-JP"));

		Assert.IsNotNull (comp.BackgroundImage, "#B1");
		Assert.IsNotNull (comp.Company, "#B2");
		Assert.AreEqual ("OSF", comp.Company, "#B3");
		Assert.AreEqual (0, comp.Interval, "#B4");
		Assert.IsTrue (comp.Localizable, "#B5");
		Assert.IsNull (comp.Name, "#B6");
		Assert.IsNotNull (comp.Text, "#B7");
		Assert.AreEqual ("Mono", comp.Text, "#B8");
		Assert.IsNotNull (comp.Title, "#B9");
		Assert.AreEqual ("Welcome", comp.Title, "#B10");
#if NET_2_0
		Assert.IsNull (comp.Zone, "#B11");
#else
		Assert.IsNotNull (comp.Zone, "#B11");
		Assert.AreEqual (string.Empty, comp.Zone, "#B12");
#endif
	}
Ejemplo n.º 4
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmSearch));

            groupBox1   = new GroupControl();
            btSave1     = new SimpleButton();
            pictureBox1 = new PictureBox();
            groupBox2   = new GroupControl();
            btSave2     = new SimpleButton();
            pictureBox2 = new PictureBox();
            button1     = new SimpleButton();
            button3     = new SimpleButton();
            label1      = new LabelControl();
            groupBox1.BeginInit();
            groupBox1.SuspendLayout();
            ((ISupportInitialize)pictureBox1).BeginInit();
            groupBox2.BeginInit();
            groupBox2.SuspendLayout();
            ((ISupportInitialize)pictureBox2).BeginInit();
            SuspendLayout();
            groupBox1.Appearance.Font                   = (Font)componentResourceManager.GetObject("groupBox1.Appearance.Font");
            groupBox1.Appearance.Options.UseFont        = true;
            groupBox1.AppearanceCaption.Font            = (Font)componentResourceManager.GetObject("groupBox1.AppearanceCaption.Font");
            groupBox1.AppearanceCaption.Options.UseFont = true;
            groupBox1.Controls.Add(btSave1);
            groupBox1.Controls.Add(pictureBox1);
            componentResourceManager.ApplyResources(groupBox1, "groupBox1");
            groupBox1.Name                     = "groupBox1";
            btSave1.Appearance.Font            = (Font)componentResourceManager.GetObject("btSave1.Appearance.Font");
            btSave1.Appearance.Options.UseFont = true;
            componentResourceManager.ApplyResources(btSave1, "btSave1");
            btSave1.Name   = "btSave1";
            btSave1.Click += btSave1_Click;
            componentResourceManager.ApplyResources(pictureBox1, "pictureBox1");
            pictureBox1.Name                            = "pictureBox1";
            pictureBox1.TabStop                         = false;
            groupBox2.Appearance.Font                   = (Font)componentResourceManager.GetObject("groupBox2.Appearance.Font");
            groupBox2.Appearance.Options.UseFont        = true;
            groupBox2.AppearanceCaption.Font            = (Font)componentResourceManager.GetObject("groupBox2.AppearanceCaption.Font");
            groupBox2.AppearanceCaption.Options.UseFont = true;
            groupBox2.Controls.Add(btSave2);
            groupBox2.Controls.Add(pictureBox2);
            componentResourceManager.ApplyResources(groupBox2, "groupBox2");
            groupBox2.Name                     = "groupBox2";
            btSave2.Appearance.Font            = (Font)componentResourceManager.GetObject("btSave2.Appearance.Font");
            btSave2.Appearance.Options.UseFont = true;
            componentResourceManager.ApplyResources(btSave2, "btSave2");
            btSave2.Name   = "btSave2";
            btSave2.Click += btSave2_Click;
            componentResourceManager.ApplyResources(pictureBox2, "pictureBox2");
            pictureBox2.Name                   = "pictureBox2";
            pictureBox2.TabStop                = false;
            button1.Appearance.Font            = (Font)componentResourceManager.GetObject("button1.Appearance.Font");
            button1.Appearance.Options.UseFont = true;
            button1.DialogResult               = DialogResult.Cancel;
            componentResourceManager.ApplyResources(button1, "button1");
            button1.Name                       = "button1";
            button1.Click                     += button1_Click;
            button3.Appearance.Font            = (Font)componentResourceManager.GetObject("button3.Appearance.Font");
            button3.Appearance.Options.UseFont = true;
            componentResourceManager.ApplyResources(button3, "button3");
            button3.Name           = "button3";
            button3.Click         += button3_Click;
            label1.Appearance.Font = (Font)componentResourceManager.GetObject("label1.Appearance.Font");
            componentResourceManager.ApplyResources(label1, "label1");
            label1.Name  = "label1";
            AcceptButton = button1;
            componentResourceManager.ApplyResources(this, "$this");
            AutoScaleMode = AutoScaleMode.Font;
            CancelButton  = button1;
            Controls.Add(label1);
            Controls.Add(button3);
            Controls.Add(button1);
            Controls.Add(groupBox2);
            Controls.Add(groupBox1);
            FormBorderStyle = FormBorderStyle.FixedSingle;
            MaximizeBox     = false;
            MinimizeBox     = false;
            Name            = "FrmSearch";
            Load           += frmSerach_Load;
            groupBox1.EndInit();
            groupBox1.ResumeLayout(false);
            ((ISupportInitialize)pictureBox1).EndInit();
            groupBox2.EndInit();
            groupBox2.ResumeLayout(false);
            ((ISupportInitialize)pictureBox2).EndInit();
            ResumeLayout(false);
            PerformLayout();
        }
Ejemplo n.º 5
0
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(TrustManagerMoreInformation));

            this.tableLayoutPanel        = new TableLayoutPanel();
            this.pictureBoxPublisher     = new PictureBox();
            this.pictureBoxMachineAccess = new PictureBox();
            this.pictureBoxInstallation  = new PictureBox();
            this.pictureBoxLocation      = new PictureBox();
            this.lblPublisher            = new Label();
            this.lblPublisherContent     = new Label();
            this.lblMachineAccess        = new Label();
            this.lblMachineAccessContent = new Label();
            this.lblInstallation         = new Label();
            this.lblInstallationContent  = new Label();
            this.lblLocation             = new Label();
            this.lblLocationContent      = new Label();
            this.btnClose = new Button();
            this.tableLayoutPanel.SuspendLayout();
            ((ISupportInitialize)this.pictureBoxPublisher).BeginInit();
            ((ISupportInitialize)this.pictureBoxMachineAccess).BeginInit();
            ((ISupportInitialize)this.pictureBoxInstallation).BeginInit();
            ((ISupportInitialize)this.pictureBoxLocation).BeginInit();
            base.SuspendLayout();
            manager.ApplyResources(this.tableLayoutPanel, "tableLayoutPanel");
            this.tableLayoutPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            this.tableLayoutPanel.ColumnStyles.Add(new ColumnStyle());
            this.tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 389f));
            this.tableLayoutPanel.Controls.Add(this.pictureBoxPublisher, 0, 0);
            this.tableLayoutPanel.Controls.Add(this.pictureBoxMachineAccess, 0, 2);
            this.tableLayoutPanel.Controls.Add(this.pictureBoxInstallation, 0, 4);
            this.tableLayoutPanel.Controls.Add(this.pictureBoxLocation, 0, 6);
            this.tableLayoutPanel.Controls.Add(this.lblPublisher, 1, 0);
            this.tableLayoutPanel.Controls.Add(this.lblPublisherContent, 1, 1);
            this.tableLayoutPanel.Controls.Add(this.lblMachineAccess, 1, 2);
            this.tableLayoutPanel.Controls.Add(this.lblMachineAccessContent, 1, 3);
            this.tableLayoutPanel.Controls.Add(this.lblInstallation, 1, 4);
            this.tableLayoutPanel.Controls.Add(this.lblInstallationContent, 1, 5);
            this.tableLayoutPanel.Controls.Add(this.lblLocation, 1, 6);
            this.tableLayoutPanel.Controls.Add(this.lblLocationContent, 1, 7);
            this.tableLayoutPanel.Controls.Add(this.btnClose, 1, 8);
            this.tableLayoutPanel.Margin = new Padding(12);
            this.tableLayoutPanel.Name   = "tableLayoutPanel";
            this.tableLayoutPanel.RowStyles.Add(new RowStyle());
            this.tableLayoutPanel.RowStyles.Add(new RowStyle());
            this.tableLayoutPanel.RowStyles.Add(new RowStyle());
            this.tableLayoutPanel.RowStyles.Add(new RowStyle());
            this.tableLayoutPanel.RowStyles.Add(new RowStyle());
            this.tableLayoutPanel.RowStyles.Add(new RowStyle());
            this.tableLayoutPanel.RowStyles.Add(new RowStyle());
            this.tableLayoutPanel.RowStyles.Add(new RowStyle());
            this.tableLayoutPanel.RowStyles.Add(new RowStyle());
            manager.ApplyResources(this.pictureBoxPublisher, "pictureBoxPublisher");
            this.pictureBoxPublisher.Margin = new Padding(0, 0, 3, 0);
            this.pictureBoxPublisher.Name   = "pictureBoxPublisher";
            this.tableLayoutPanel.SetRowSpan(this.pictureBoxPublisher, 2);
            this.pictureBoxPublisher.TabStop = false;
            manager.ApplyResources(this.pictureBoxMachineAccess, "pictureBoxMachineAccess");
            this.pictureBoxMachineAccess.Margin = new Padding(0, 10, 3, 0);
            this.pictureBoxMachineAccess.Name   = "pictureBoxMachineAccess";
            this.tableLayoutPanel.SetRowSpan(this.pictureBoxMachineAccess, 2);
            this.pictureBoxMachineAccess.TabStop = false;
            manager.ApplyResources(this.pictureBoxInstallation, "pictureBoxInstallation");
            this.pictureBoxInstallation.Margin = new Padding(0, 10, 3, 0);
            this.pictureBoxInstallation.Name   = "pictureBoxInstallation";
            this.tableLayoutPanel.SetRowSpan(this.pictureBoxInstallation, 2);
            this.pictureBoxInstallation.TabStop = false;
            manager.ApplyResources(this.pictureBoxLocation, "pictureBoxLocation");
            this.pictureBoxLocation.Margin = new Padding(0, 10, 3, 0);
            this.pictureBoxLocation.Name   = "pictureBoxLocation";
            this.tableLayoutPanel.SetRowSpan(this.pictureBoxLocation, 2);
            this.pictureBoxLocation.TabStop = false;
            manager.ApplyResources(this.lblPublisher, "lblPublisher");
            this.lblPublisher.Margin = new Padding(3, 0, 0, 0);
            this.lblPublisher.Name   = "lblPublisher";
            manager.ApplyResources(this.lblPublisherContent, "lblPublisherContent");
            this.lblPublisherContent.Margin = new Padding(3, 0, 0, 10);
            this.lblPublisherContent.Name   = "lblPublisherContent";
            manager.ApplyResources(this.lblMachineAccess, "lblMachineAccess");
            this.lblMachineAccess.Margin = new Padding(3, 10, 0, 0);
            this.lblMachineAccess.Name   = "lblMachineAccess";
            manager.ApplyResources(this.lblMachineAccessContent, "lblMachineAccessContent");
            this.lblMachineAccessContent.Margin = new Padding(3, 0, 0, 10);
            this.lblMachineAccessContent.Name   = "lblMachineAccessContent";
            manager.ApplyResources(this.lblInstallation, "lblInstallation");
            this.lblInstallation.Margin = new Padding(3, 10, 0, 0);
            this.lblInstallation.Name   = "lblInstallation";
            manager.ApplyResources(this.lblInstallationContent, "lblInstallationContent");
            this.lblInstallationContent.Margin = new Padding(3, 0, 0, 10);
            this.lblInstallationContent.Name   = "lblInstallationContent";
            manager.ApplyResources(this.lblLocation, "lblLocation");
            this.lblLocation.Margin = new Padding(3, 10, 0, 0);
            this.lblLocation.Name   = "lblLocation";
            manager.ApplyResources(this.lblLocationContent, "lblLocationContent");
            this.lblLocationContent.Margin = new Padding(3, 0, 0, 10);
            this.lblLocationContent.Name   = "lblLocationContent";
            manager.ApplyResources(this.btnClose, "btnClose");
            this.btnClose.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            this.btnClose.DialogResult = DialogResult.Cancel;
            this.btnClose.Margin       = new Padding(0, 10, 0, 0);
            this.btnClose.MinimumSize  = new Size(0x4b, 0x17);
            this.btnClose.Name         = "btnClose";
            this.btnClose.Padding      = new Padding(10, 0, 10, 0);
            this.tableLayoutPanel.SetColumnSpan(this.btnClose, 2);
            base.AcceptButton = this.btnClose;
            manager.ApplyResources(this, "$this");
            base.AutoScaleMode = AutoScaleMode.Font;
            base.AutoSizeMode  = AutoSizeMode.GrowAndShrink;
            base.CancelButton  = this.btnClose;
            base.Controls.Add(this.tableLayoutPanel);
            base.FormBorderStyle = FormBorderStyle.FixedDialog;
            base.MaximizeBox     = false;
            base.MinimizeBox     = false;
            base.Name            = "TrustManagerMoreInformation";
            this.tableLayoutPanel.ResumeLayout(false);
            this.tableLayoutPanel.PerformLayout();
            ((ISupportInitialize)this.pictureBoxPublisher).EndInit();
            ((ISupportInitialize)this.pictureBoxMachineAccess).EndInit();
            ((ISupportInitialize)this.pictureBoxInstallation).EndInit();
            ((ISupportInitialize)this.pictureBoxLocation).EndInit();
            base.ResumeLayout(false);
            base.PerformLayout();
        }
Ejemplo n.º 6
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(ThermGenRptPara));

            this.btnGen      = new Button();
            this.label14     = new Label();
            this.txttitle    = new TextBox();
            this.lbwriter    = new Label();
            this.label15     = new Label();
            this.dtpbegin    = new DateTimePicker();
            this.label1      = new Label();
            this.dtptime     = new DateTimePicker();
            this.cboperiod   = new ComboBox();
            this.txtwrite    = new TextBox();
            this.chkchart1   = new CheckBox();
            this.chkchart3   = new CheckBox();
            this.lbtitle     = new Label();
            this.chkchart4   = new CheckBox();
            this.chkchart2   = new CheckBox();
            this.groupBox2   = new GroupBox();
            this.btndel      = new Button();
            this.btnAdd      = new Button();
            this.grouplist   = new ListView();
            this.gptype      = new ColumnHeader();
            this.gpname      = new ColumnHeader();
            this.cboduration = new ComboBox();
            this.chkchart5   = new CheckBox();
            this.grpbchart   = new GroupBox();
            this.gbxInfo     = new GroupBox();
            this.tbduration  = new TextBox();
            this.label29     = new Label();
            this.groupBox2.SuspendLayout();
            this.grpbchart.SuspendLayout();
            this.gbxInfo.SuspendLayout();
            base.SuspendLayout();
            this.btnGen.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.btnGen, "btnGen");
            this.btnGen.Name = "btnGen";
            this.btnGen.UseVisualStyleBackColor = false;
            this.btnGen.Click += new System.EventHandler(this.btnGen_Click);
            componentResourceManager.ApplyResources(this.label14, "label14");
            this.label14.ForeColor = Color.Black;
            this.label14.Name      = "label14";
            componentResourceManager.ApplyResources(this.txttitle, "txttitle");
            this.txttitle.Name      = "txttitle";
            this.txttitle.KeyPress += new KeyPressEventHandler(this.txttitle_KeyPress);
            componentResourceManager.ApplyResources(this.lbwriter, "lbwriter");
            this.lbwriter.ForeColor = Color.Black;
            this.lbwriter.Name      = "lbwriter";
            componentResourceManager.ApplyResources(this.label15, "label15");
            this.label15.ForeColor = Color.Black;
            this.label15.Name      = "label15";
            componentResourceManager.ApplyResources(this.dtpbegin, "dtpbegin");
            this.dtpbegin.Format        = DateTimePickerFormat.Custom;
            this.dtpbegin.Name          = "dtpbegin";
            this.dtpbegin.ShowUpDown    = true;
            this.dtpbegin.ValueChanged += new System.EventHandler(this.dtpbegin_ValueChanged);
            componentResourceManager.ApplyResources(this.label1, "label1");
            this.label1.ForeColor = Color.Black;
            this.label1.Name      = "label1";
            componentResourceManager.ApplyResources(this.dtptime, "dtptime");
            this.dtptime.Format          = DateTimePickerFormat.Custom;
            this.dtptime.Name            = "dtptime";
            this.dtptime.ShowUpDown      = true;
            this.cboperiod.DropDownStyle = ComboBoxStyle.DropDownList;
            componentResourceManager.ApplyResources(this.cboperiod, "cboperiod");
            this.cboperiod.FormattingEnabled = true;
            this.cboperiod.Items.AddRange(new object[]
            {
                componentResourceManager.GetString("cboperiod.Items"),
                componentResourceManager.GetString("cboperiod.Items1"),
                componentResourceManager.GetString("cboperiod.Items2"),
                componentResourceManager.GetString("cboperiod.Items3")
            });
            this.cboperiod.Name = "cboperiod";
            this.cboperiod.SelectedIndexChanged += new System.EventHandler(this.cboperiod_SelectedIndexChanged);
            componentResourceManager.ApplyResources(this.txtwrite, "txtwrite");
            this.txtwrite.Name      = "txtwrite";
            this.txtwrite.KeyPress += new KeyPressEventHandler(this.txtwrite_KeyPress);
            componentResourceManager.ApplyResources(this.chkchart1, "chkchart1");
            this.chkchart1.ForeColor = Color.Black;
            this.chkchart1.Name      = "chkchart1";
            this.chkchart1.UseVisualStyleBackColor = true;
            componentResourceManager.ApplyResources(this.chkchart3, "chkchart3");
            this.chkchart3.ForeColor = Color.Black;
            this.chkchart3.Name      = "chkchart3";
            this.chkchart3.UseVisualStyleBackColor = true;
            componentResourceManager.ApplyResources(this.lbtitle, "lbtitle");
            this.lbtitle.ForeColor = Color.Black;
            this.lbtitle.Name      = "lbtitle";
            componentResourceManager.ApplyResources(this.chkchart4, "chkchart4");
            this.chkchart4.ForeColor = Color.Black;
            this.chkchart4.Name      = "chkchart4";
            this.chkchart4.UseVisualStyleBackColor = true;
            componentResourceManager.ApplyResources(this.chkchart2, "chkchart2");
            this.chkchart2.ForeColor = Color.Black;
            this.chkchart2.Name      = "chkchart2";
            this.chkchart2.UseVisualStyleBackColor = true;
            this.groupBox2.Controls.Add(this.btndel);
            this.groupBox2.Controls.Add(this.btnAdd);
            this.groupBox2.Controls.Add(this.grouplist);
            componentResourceManager.ApplyResources(this.groupBox2, "groupBox2");
            this.groupBox2.ForeColor = Color.FromArgb(20, 73, 160);
            this.groupBox2.Name      = "groupBox2";
            this.groupBox2.TabStop   = false;
            this.btndel.BackColor    = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.btndel, "btndel");
            this.btndel.ForeColor = SystemColors.ControlText;
            this.btndel.Name      = "btndel";
            this.btndel.UseVisualStyleBackColor = false;
            this.btndel.Click    += new System.EventHandler(this.btndel_Click);
            this.btnAdd.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.btnAdd, "btnAdd");
            this.btnAdd.ForeColor = SystemColors.ControlText;
            this.btnAdd.Name      = "btnAdd";
            this.btnAdd.UseVisualStyleBackColor = false;
            this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
            this.grouplist.Columns.AddRange(new ColumnHeader[]
            {
                this.gptype,
                this.gpname
            });
            componentResourceManager.ApplyResources(this.grouplist, "grouplist");
            this.grouplist.FullRowSelect = true;
            this.grouplist.HideSelection = false;
            this.grouplist.Name          = "grouplist";
            this.grouplist.UseCompatibleStateImageBehavior = false;
            this.grouplist.View = View.Details;
            this.grouplist.SelectedIndexChanged += new System.EventHandler(this.grouplist_SelectedIndexChanged);
            componentResourceManager.ApplyResources(this.gptype, "gptype");
            componentResourceManager.ApplyResources(this.gpname, "gpname");
            this.cboduration.DropDownStyle = ComboBoxStyle.DropDownList;
            componentResourceManager.ApplyResources(this.cboduration, "cboduration");
            this.cboduration.FormattingEnabled = true;
            this.cboduration.Items.AddRange(new object[]
            {
                componentResourceManager.GetString("cboduration.Items"),
                componentResourceManager.GetString("cboduration.Items1"),
                componentResourceManager.GetString("cboduration.Items2"),
                componentResourceManager.GetString("cboduration.Items3"),
                componentResourceManager.GetString("cboduration.Items4"),
                componentResourceManager.GetString("cboduration.Items5"),
                componentResourceManager.GetString("cboduration.Items6")
            });
            this.cboduration.Name = "cboduration";
            componentResourceManager.ApplyResources(this.chkchart5, "chkchart5");
            this.chkchart5.ForeColor = Color.Black;
            this.chkchart5.Name      = "chkchart5";
            this.chkchart5.UseVisualStyleBackColor = true;
            this.grpbchart.Controls.Add(this.chkchart1);
            this.grpbchart.Controls.Add(this.chkchart3);
            this.grpbchart.Controls.Add(this.chkchart4);
            this.grpbchart.Controls.Add(this.chkchart2);
            this.grpbchart.Controls.Add(this.chkchart5);
            componentResourceManager.ApplyResources(this.grpbchart, "grpbchart");
            this.grpbchart.ForeColor = Color.FromArgb(20, 73, 160);
            this.grpbchart.Name      = "grpbchart";
            this.grpbchart.TabStop   = false;
            this.gbxInfo.Controls.Add(this.tbduration);
            this.gbxInfo.Controls.Add(this.cboduration);
            this.gbxInfo.Controls.Add(this.lbtitle);
            this.gbxInfo.Controls.Add(this.label1);
            this.gbxInfo.Controls.Add(this.dtpbegin);
            this.gbxInfo.Controls.Add(this.txttitle);
            this.gbxInfo.Controls.Add(this.label14);
            this.gbxInfo.Controls.Add(this.lbwriter);
            this.gbxInfo.Controls.Add(this.label15);
            this.gbxInfo.Controls.Add(this.dtptime);
            this.gbxInfo.Controls.Add(this.cboperiod);
            this.gbxInfo.Controls.Add(this.txtwrite);
            this.gbxInfo.Controls.Add(this.label29);
            componentResourceManager.ApplyResources(this.gbxInfo, "gbxInfo");
            this.gbxInfo.ForeColor = Color.FromArgb(20, 73, 160);
            this.gbxInfo.Name      = "gbxInfo";
            this.gbxInfo.TabStop   = false;
            componentResourceManager.ApplyResources(this.tbduration, "tbduration");
            this.tbduration.Name      = "tbduration";
            this.tbduration.KeyPress += new KeyPressEventHandler(this.int_KeyPress);
            componentResourceManager.ApplyResources(this.label29, "label29");
            this.label29.ForeColor = Color.Black;
            this.label29.Name      = "label29";
            base.AutoScaleMode     = AutoScaleMode.None;
            this.BackColor         = Color.WhiteSmoke;
            base.Controls.Add(this.btnGen);
            base.Controls.Add(this.groupBox2);
            base.Controls.Add(this.grpbchart);
            base.Controls.Add(this.gbxInfo);
            componentResourceManager.ApplyResources(this, "$this");
            base.Name = "ThermGenRptPara";
            this.groupBox2.ResumeLayout(false);
            this.grpbchart.ResumeLayout(false);
            this.grpbchart.PerformLayout();
            this.gbxInfo.ResumeLayout(false);
            this.gbxInfo.PerformLayout();
            base.ResumeLayout(false);
        }
Ejemplo n.º 7
0
            private void InitializeComponent()
            {
                ComponentResourceManager resources = new ComponentResourceManager(typeof(BorderSidesEditor));

                tableLayoutPanel1 = new TableLayoutPanel();
                noneCheckBox      = new CheckBox();
                allCheckBox       = new CheckBox();
                topCheckBox       = new CheckBox();
                bottomCheckBox    = new CheckBox();
                rightCheckBox     = new CheckBox();
                leftCheckBox      = new CheckBox();
                splitterLabel     = new Label();
                tableLayoutPanel1.SuspendLayout();
                SuspendLayout();
                //
                // tableLayoutPanel1
                //
                resources.ApplyResources(tableLayoutPanel1, "tableLayoutPanel1");
                tableLayoutPanel1.AutoSizeMode = AutoSizeMode.GrowAndShrink;
                tableLayoutPanel1.BackColor    = SystemColors.Window;
                tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle());
                tableLayoutPanel1.Controls.Add(noneCheckBox, 0, 0);
                tableLayoutPanel1.Controls.Add(allCheckBox, 0, 2);
                tableLayoutPanel1.Controls.Add(topCheckBox, 0, 3);
                tableLayoutPanel1.Controls.Add(bottomCheckBox, 0, 4);
                tableLayoutPanel1.Controls.Add(rightCheckBox, 0, 6);
                tableLayoutPanel1.Controls.Add(leftCheckBox, 0, 5);
                tableLayoutPanel1.Controls.Add(splitterLabel, 0, 1);
                tableLayoutPanel1.Name = "tableLayoutPanel1";
                tableLayoutPanel1.RowStyles.Add(new RowStyle());
                tableLayoutPanel1.RowStyles.Add(new RowStyle());
                tableLayoutPanel1.RowStyles.Add(new RowStyle());
                tableLayoutPanel1.RowStyles.Add(new RowStyle());
                tableLayoutPanel1.RowStyles.Add(new RowStyle());
                tableLayoutPanel1.RowStyles.Add(new RowStyle());
                tableLayoutPanel1.RowStyles.Add(new RowStyle());
                tableLayoutPanel1.Margin = new Padding(0);
                //
                // noneCheckBox
                //
                resources.ApplyResources(noneCheckBox, "noneCheckBox");
                noneCheckBox.Name   = "noneCheckBox";
                noneCheckBox.Margin = new Padding(3, 3, 3, 1);
                //
                // allCheckBox
                //
                resources.ApplyResources(allCheckBox, "allCheckBox");
                allCheckBox.Name   = "allCheckBox";
                allCheckBox.Margin = new Padding(3, 3, 3, 1);
                //
                // topCheckBox
                //
                resources.ApplyResources(topCheckBox, "topCheckBox");
                topCheckBox.Margin = new Padding(20, 1, 3, 1);
                topCheckBox.Name   = "topCheckBox";
                //
                // bottomCheckBox
                //
                resources.ApplyResources(bottomCheckBox, "bottomCheckBox");
                bottomCheckBox.Margin = new Padding(20, 1, 3, 1);
                bottomCheckBox.Name   = "bottomCheckBox";
                //
                // rightCheckBox
                //
                resources.ApplyResources(rightCheckBox, "rightCheckBox");
                rightCheckBox.Margin = new Padding(20, 1, 3, 1);
                rightCheckBox.Name   = "rightCheckBox";
                //
                // leftCheckBox
                //
                resources.ApplyResources(leftCheckBox, "leftCheckBox");
                leftCheckBox.Margin = new Padding(20, 1, 3, 1);
                leftCheckBox.Name   = "leftCheckBox";
                //
                // splitterLabel
                //
                resources.ApplyResources(splitterLabel, "splitterLabel");
                splitterLabel.BackColor = SystemColors.ControlDark;
                splitterLabel.Name      = "splitterLabel";
                //
                // Control
                //
                resources.ApplyResources(this, "$this");
                Controls.Add(tableLayoutPanel1);
                Padding             = new Padding(1, 1, 1, 1);
                AutoSizeMode        = AutoSizeMode.GrowAndShrink;
                AutoScaleMode       = AutoScaleMode.Font;
                AutoScaleDimensions = new SizeF(6F, 13F);
                tableLayoutPanel1.ResumeLayout(false);
                tableLayoutPanel1.PerformLayout();
                ResumeLayout(false);
                PerformLayout();

                //Events
                rightCheckBox.CheckedChanged  += rightCheckBox_CheckedChanged;
                leftCheckBox.CheckedChanged   += leftCheckBox_CheckedChanged;
                bottomCheckBox.CheckedChanged += bottomCheckBox_CheckedChanged;
                topCheckBox.CheckedChanged    += topCheckBox_CheckedChanged;
                noneCheckBox.CheckedChanged   += noneCheckBox_CheckedChanged;
                allCheckBox.CheckedChanged    += allCheckBox_CheckedChanged;

                noneCheckBox.Click += noneCheckBoxClicked;
                allCheckBox.Click  += allCheckBoxClicked;
            }
Ejemplo n.º 8
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(FrmDeleteKeys));

            groupBox3       = new GroupControl();
            checkEditBefore = new CheckEdit();
            checkEditFrom   = new CheckEdit();
            btAccept        = new SimpleButton();
            dtpBefore       = new DateEdit();
            dtpFrom         = new DateEdit();
            labelControl1   = new LabelControl();
            dtValueFrom     = new DateEdit();
            btSave          = new SimpleButton();
            groupControl1   = new GroupControl();
            labelControl2   = new LabelControl();
            simpleButton1   = new SimpleButton();
            groupBox3.BeginInit();
            groupBox3.SuspendLayout();
            checkEditBefore.Properties.BeginInit();
            checkEditFrom.Properties.BeginInit();
            dtpBefore.Properties.CalendarTimeProperties.BeginInit();
            dtpBefore.Properties.BeginInit();
            dtpFrom.Properties.CalendarTimeProperties.BeginInit();
            dtpFrom.Properties.BeginInit();
            dtValueFrom.Properties.CalendarTimeProperties.BeginInit();
            dtValueFrom.Properties.BeginInit();
            groupControl1.BeginInit();
            groupControl1.SuspendLayout();
            SuspendLayout();
            componentResourceManager.ApplyResources(groupBox3, "groupBox3");
            groupBox3.AppearanceCaption.Font            = (Font)componentResourceManager.GetObject("groupBox3.AppearanceCaption.Font");
            groupBox3.AppearanceCaption.FontSizeDelta   = (int)componentResourceManager.GetObject("groupBox3.AppearanceCaption.FontSizeDelta");
            groupBox3.AppearanceCaption.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("groupBox3.AppearanceCaption.FontStyleDelta");
            groupBox3.AppearanceCaption.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("groupBox3.AppearanceCaption.GradientMode");
            groupBox3.AppearanceCaption.Image           = (Image)componentResourceManager.GetObject("groupBox3.AppearanceCaption.Image");
            groupBox3.AppearanceCaption.Options.UseFont = true;
            groupBox3.Controls.Add(checkEditBefore);
            groupBox3.Controls.Add(checkEditFrom);
            groupBox3.Controls.Add(btAccept);
            groupBox3.Controls.Add(dtpBefore);
            groupBox3.Controls.Add(dtpFrom);
            groupBox3.Name        = "groupBox3";
            groupBox3.ShowCaption = false;
            groupBox3.TabStop     = true;
            componentResourceManager.ApplyResources(checkEditBefore, "checkEditBefore");
            checkEditBefore.Name = "checkEditBefore";
            checkEditBefore.Properties.AccessibleDescription      = componentResourceManager.GetString("checkEditBefore.Properties.AccessibleDescription");
            checkEditBefore.Properties.AccessibleName             = componentResourceManager.GetString("checkEditBefore.Properties.AccessibleName");
            checkEditBefore.Properties.Appearance.Font            = (Font)componentResourceManager.GetObject("checkEditBefore.Properties.Appearance.Font");
            checkEditBefore.Properties.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("checkEditBefore.Properties.Appearance.FontSizeDelta");
            checkEditBefore.Properties.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("checkEditBefore.Properties.Appearance.FontStyleDelta");
            checkEditBefore.Properties.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("checkEditBefore.Properties.Appearance.GradientMode");
            checkEditBefore.Properties.Appearance.Image           = (Image)componentResourceManager.GetObject("checkEditBefore.Properties.Appearance.Image");
            checkEditBefore.Properties.Appearance.Options.UseFont = true;
            checkEditBefore.Properties.AutoHeight            = (bool)componentResourceManager.GetObject("checkEditBefore.Properties.AutoHeight");
            checkEditBefore.Properties.Caption               = componentResourceManager.GetString("checkEditBefore.Properties.Caption");
            checkEditBefore.Properties.DisplayValueChecked   = componentResourceManager.GetString("checkEditBefore.Properties.DisplayValueChecked");
            checkEditBefore.Properties.DisplayValueGrayed    = componentResourceManager.GetString("checkEditBefore.Properties.DisplayValueGrayed");
            checkEditBefore.Properties.DisplayValueUnchecked = componentResourceManager.GetString("checkEditBefore.Properties.DisplayValueUnchecked");
            checkEditBefore.CheckedChanged += checkEditBefore_CheckedChanged;
            componentResourceManager.ApplyResources(checkEditFrom, "checkEditFrom");
            checkEditFrom.Name = "checkEditFrom";
            checkEditFrom.Properties.AccessibleDescription      = componentResourceManager.GetString("checkEditFrom.Properties.AccessibleDescription");
            checkEditFrom.Properties.AccessibleName             = componentResourceManager.GetString("checkEditFrom.Properties.AccessibleName");
            checkEditFrom.Properties.Appearance.Font            = (Font)componentResourceManager.GetObject("checkEditFrom.Properties.Appearance.Font");
            checkEditFrom.Properties.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("checkEditFrom.Properties.Appearance.FontSizeDelta");
            checkEditFrom.Properties.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("checkEditFrom.Properties.Appearance.FontStyleDelta");
            checkEditFrom.Properties.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("checkEditFrom.Properties.Appearance.GradientMode");
            checkEditFrom.Properties.Appearance.Image           = (Image)componentResourceManager.GetObject("checkEditFrom.Properties.Appearance.Image");
            checkEditFrom.Properties.Appearance.Options.UseFont = true;
            checkEditFrom.Properties.AutoHeight            = (bool)componentResourceManager.GetObject("checkEditFrom.Properties.AutoHeight");
            checkEditFrom.Properties.Caption               = componentResourceManager.GetString("checkEditFrom.Properties.Caption");
            checkEditFrom.Properties.DisplayValueChecked   = componentResourceManager.GetString("checkEditFrom.Properties.DisplayValueChecked");
            checkEditFrom.Properties.DisplayValueGrayed    = componentResourceManager.GetString("checkEditFrom.Properties.DisplayValueGrayed");
            checkEditFrom.Properties.DisplayValueUnchecked = componentResourceManager.GetString("checkEditFrom.Properties.DisplayValueUnchecked");
            checkEditFrom.CheckedChanged += checkEditFrom_CheckedChanged;
            componentResourceManager.ApplyResources(btAccept, "btAccept");
            btAccept.Appearance.Font            = (Font)componentResourceManager.GetObject("btAccept.Appearance.Font");
            btAccept.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("btAccept.Appearance.FontSizeDelta");
            btAccept.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btAccept.Appearance.FontStyleDelta");
            btAccept.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("btAccept.Appearance.GradientMode");
            btAccept.Appearance.Image           = (Image)componentResourceManager.GetObject("btAccept.Appearance.Image");
            btAccept.Appearance.Options.UseFont = true;
            btAccept.Name   = "btAccept";
            btAccept.Click += btAccept_Click;
            componentResourceManager.ApplyResources(dtpBefore, "dtpBefore");
            dtpBefore.Name = "dtpBefore";
            dtpBefore.Properties.AccessibleDescription      = componentResourceManager.GetString("dtpBefore.Properties.AccessibleDescription");
            dtpBefore.Properties.AccessibleName             = componentResourceManager.GetString("dtpBefore.Properties.AccessibleName");
            dtpBefore.Properties.Appearance.Font            = (Font)componentResourceManager.GetObject("dtpBefore.Properties.Appearance.Font");
            dtpBefore.Properties.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("dtpBefore.Properties.Appearance.FontSizeDelta");
            dtpBefore.Properties.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("dtpBefore.Properties.Appearance.FontStyleDelta");
            dtpBefore.Properties.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("dtpBefore.Properties.Appearance.GradientMode");
            dtpBefore.Properties.Appearance.Image           = (Image)componentResourceManager.GetObject("dtpBefore.Properties.Appearance.Image");
            dtpBefore.Properties.Appearance.Options.UseFont = true;
            dtpBefore.Properties.AutoHeight = (bool)componentResourceManager.GetObject("dtpBefore.Properties.AutoHeight");
            dtpBefore.Properties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            dtpBefore.Properties.CalendarTimeProperties.AccessibleDescription = componentResourceManager.GetString("dtpBefore.Properties.CalendarTimeProperties.AccessibleDescription");
            dtpBefore.Properties.CalendarTimeProperties.AccessibleName        = componentResourceManager.GetString("dtpBefore.Properties.CalendarTimeProperties.AccessibleName");
            dtpBefore.Properties.CalendarTimeProperties.AutoHeight            = (bool)componentResourceManager.GetObject("dtpBefore.Properties.CalendarTimeProperties.AutoHeight");
            dtpBefore.Properties.CalendarTimeProperties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            dtpBefore.Properties.CalendarTimeProperties.DisplayFormat.FormatString = "dd.MMMM.yyyy hh:mm:ss";
            dtpBefore.Properties.CalendarTimeProperties.DisplayFormat.FormatType   = FormatType.DateTime;
            dtpBefore.Properties.CalendarTimeProperties.EditFormat.FormatString    = "dd.MMMM.yyyy hh:mm:ss";
            dtpBefore.Properties.CalendarTimeProperties.EditFormat.FormatType      = FormatType.DateTime;
            dtpBefore.Properties.CalendarTimeProperties.Mask.AutoComplete          = (AutoCompleteType)componentResourceManager.GetObject("dtpBefore.Properties.CalendarTimeProperties.Mask.AutoComplete");
            dtpBefore.Properties.CalendarTimeProperties.Mask.BeepOnError           = (bool)componentResourceManager.GetObject("dtpBefore.Properties.CalendarTimeProperties.Mask.BeepOnError");
            dtpBefore.Properties.CalendarTimeProperties.Mask.EditMask                    = componentResourceManager.GetString("dtpBefore.Properties.CalendarTimeProperties.Mask.EditMask");
            dtpBefore.Properties.CalendarTimeProperties.Mask.IgnoreMaskBlank             = (bool)componentResourceManager.GetObject("dtpBefore.Properties.CalendarTimeProperties.Mask.IgnoreMaskBlank");
            dtpBefore.Properties.CalendarTimeProperties.Mask.MaskType                    = (MaskType)componentResourceManager.GetObject("dtpBefore.Properties.CalendarTimeProperties.Mask.MaskType");
            dtpBefore.Properties.CalendarTimeProperties.Mask.PlaceHolder                 = (char)componentResourceManager.GetObject("dtpBefore.Properties.CalendarTimeProperties.Mask.PlaceHolder");
            dtpBefore.Properties.CalendarTimeProperties.Mask.SaveLiteral                 = (bool)componentResourceManager.GetObject("dtpBefore.Properties.CalendarTimeProperties.Mask.SaveLiteral");
            dtpBefore.Properties.CalendarTimeProperties.Mask.ShowPlaceHolders            = (bool)componentResourceManager.GetObject("dtpBefore.Properties.CalendarTimeProperties.Mask.ShowPlaceHolders");
            dtpBefore.Properties.CalendarTimeProperties.Mask.UseMaskAsDisplayFormat      = (bool)componentResourceManager.GetObject("dtpBefore.Properties.CalendarTimeProperties.Mask.UseMaskAsDisplayFormat");
            dtpBefore.Properties.CalendarTimeProperties.NullValuePrompt                  = componentResourceManager.GetString("dtpBefore.Properties.CalendarTimeProperties.NullValuePrompt");
            dtpBefore.Properties.CalendarTimeProperties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("dtpBefore.Properties.CalendarTimeProperties.NullValuePromptShowForEmptyValue");
            dtpBefore.Properties.DisplayFormat.FormatString = "dd.MM.yyyy HH:mm:ss";
            dtpBefore.Properties.DisplayFormat.FormatType   = FormatType.DateTime;
            dtpBefore.Properties.EditFormat.FormatString    = "dd.MMMM.yyyy HH:mm:ss";
            dtpBefore.Properties.EditFormat.FormatType      = FormatType.DateTime;
            dtpBefore.Properties.Mask.AutoComplete          = (AutoCompleteType)componentResourceManager.GetObject("dtpBefore.Properties.Mask.AutoComplete");
            dtpBefore.Properties.Mask.BeepOnError           = (bool)componentResourceManager.GetObject("dtpBefore.Properties.Mask.BeepOnError");
            dtpBefore.Properties.Mask.EditMask                    = componentResourceManager.GetString("dtpBefore.Properties.Mask.EditMask");
            dtpBefore.Properties.Mask.IgnoreMaskBlank             = (bool)componentResourceManager.GetObject("dtpBefore.Properties.Mask.IgnoreMaskBlank");
            dtpBefore.Properties.Mask.MaskType                    = (MaskType)componentResourceManager.GetObject("dtpBefore.Properties.Mask.MaskType");
            dtpBefore.Properties.Mask.PlaceHolder                 = (char)componentResourceManager.GetObject("dtpBefore.Properties.Mask.PlaceHolder");
            dtpBefore.Properties.Mask.SaveLiteral                 = (bool)componentResourceManager.GetObject("dtpBefore.Properties.Mask.SaveLiteral");
            dtpBefore.Properties.Mask.ShowPlaceHolders            = (bool)componentResourceManager.GetObject("dtpBefore.Properties.Mask.ShowPlaceHolders");
            dtpBefore.Properties.Mask.UseMaskAsDisplayFormat      = (bool)componentResourceManager.GetObject("dtpBefore.Properties.Mask.UseMaskAsDisplayFormat");
            dtpBefore.Properties.NullValuePrompt                  = componentResourceManager.GetString("dtpBefore.Properties.NullValuePrompt");
            dtpBefore.Properties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("dtpBefore.Properties.NullValuePromptShowForEmptyValue");
            componentResourceManager.ApplyResources(dtpFrom, "dtpFrom");
            dtpFrom.Name = "dtpFrom";
            dtpFrom.Properties.AccessibleDescription      = componentResourceManager.GetString("dtpFrom.Properties.AccessibleDescription");
            dtpFrom.Properties.AccessibleName             = componentResourceManager.GetString("dtpFrom.Properties.AccessibleName");
            dtpFrom.Properties.Appearance.Font            = (Font)componentResourceManager.GetObject("dtpFrom.Properties.Appearance.Font");
            dtpFrom.Properties.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("dtpFrom.Properties.Appearance.FontSizeDelta");
            dtpFrom.Properties.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("dtpFrom.Properties.Appearance.FontStyleDelta");
            dtpFrom.Properties.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("dtpFrom.Properties.Appearance.GradientMode");
            dtpFrom.Properties.Appearance.Image           = (Image)componentResourceManager.GetObject("dtpFrom.Properties.Appearance.Image");
            dtpFrom.Properties.Appearance.Options.UseFont = true;
            dtpFrom.Properties.AutoHeight = (bool)componentResourceManager.GetObject("dtpFrom.Properties.AutoHeight");
            dtpFrom.Properties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            dtpFrom.Properties.CalendarTimeProperties.AccessibleDescription = componentResourceManager.GetString("dtpFrom.Properties.CalendarTimeProperties.AccessibleDescription");
            dtpFrom.Properties.CalendarTimeProperties.AccessibleName        = componentResourceManager.GetString("dtpFrom.Properties.CalendarTimeProperties.AccessibleName");
            dtpFrom.Properties.CalendarTimeProperties.AutoHeight            = (bool)componentResourceManager.GetObject("dtpFrom.Properties.CalendarTimeProperties.AutoHeight");
            dtpFrom.Properties.CalendarTimeProperties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            dtpFrom.Properties.CalendarTimeProperties.DisplayFormat.FormatString = "dd.MMMM.yyyy hh:mm:ss";
            dtpFrom.Properties.CalendarTimeProperties.DisplayFormat.FormatType   = FormatType.DateTime;
            dtpFrom.Properties.CalendarTimeProperties.EditFormat.FormatString    = "dd.MMMM.yyyy hh:mm:ss";
            dtpFrom.Properties.CalendarTimeProperties.EditFormat.FormatType      = FormatType.DateTime;
            dtpFrom.Properties.CalendarTimeProperties.Mask.AutoComplete          = (AutoCompleteType)componentResourceManager.GetObject("dtpFrom.Properties.CalendarTimeProperties.Mask.AutoComplete");
            dtpFrom.Properties.CalendarTimeProperties.Mask.BeepOnError           = (bool)componentResourceManager.GetObject("dtpFrom.Properties.CalendarTimeProperties.Mask.BeepOnError");
            dtpFrom.Properties.CalendarTimeProperties.Mask.EditMask                    = componentResourceManager.GetString("dtpFrom.Properties.CalendarTimeProperties.Mask.EditMask");
            dtpFrom.Properties.CalendarTimeProperties.Mask.IgnoreMaskBlank             = (bool)componentResourceManager.GetObject("dtpFrom.Properties.CalendarTimeProperties.Mask.IgnoreMaskBlank");
            dtpFrom.Properties.CalendarTimeProperties.Mask.MaskType                    = (MaskType)componentResourceManager.GetObject("dtpFrom.Properties.CalendarTimeProperties.Mask.MaskType");
            dtpFrom.Properties.CalendarTimeProperties.Mask.PlaceHolder                 = (char)componentResourceManager.GetObject("dtpFrom.Properties.CalendarTimeProperties.Mask.PlaceHolder");
            dtpFrom.Properties.CalendarTimeProperties.Mask.SaveLiteral                 = (bool)componentResourceManager.GetObject("dtpFrom.Properties.CalendarTimeProperties.Mask.SaveLiteral");
            dtpFrom.Properties.CalendarTimeProperties.Mask.ShowPlaceHolders            = (bool)componentResourceManager.GetObject("dtpFrom.Properties.CalendarTimeProperties.Mask.ShowPlaceHolders");
            dtpFrom.Properties.CalendarTimeProperties.Mask.UseMaskAsDisplayFormat      = (bool)componentResourceManager.GetObject("dtpFrom.Properties.CalendarTimeProperties.Mask.UseMaskAsDisplayFormat");
            dtpFrom.Properties.CalendarTimeProperties.NullValuePrompt                  = componentResourceManager.GetString("dtpFrom.Properties.CalendarTimeProperties.NullValuePrompt");
            dtpFrom.Properties.CalendarTimeProperties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("dtpFrom.Properties.CalendarTimeProperties.NullValuePromptShowForEmptyValue");
            dtpFrom.Properties.DisplayFormat.FormatString = "dd.MM.yyyy HH:mm:ss";
            dtpFrom.Properties.DisplayFormat.FormatType   = FormatType.Custom;
            dtpFrom.Properties.EditFormat.FormatString    = "dd.MMMM.yyyy HH:mm:ss";
            dtpFrom.Properties.EditFormat.FormatType      = FormatType.DateTime;
            dtpFrom.Properties.Mask.AutoComplete          = (AutoCompleteType)componentResourceManager.GetObject("dtpFrom.Properties.Mask.AutoComplete");
            dtpFrom.Properties.Mask.BeepOnError           = (bool)componentResourceManager.GetObject("dtpFrom.Properties.Mask.BeepOnError");
            dtpFrom.Properties.Mask.EditMask                    = componentResourceManager.GetString("dtpFrom.Properties.Mask.EditMask");
            dtpFrom.Properties.Mask.IgnoreMaskBlank             = (bool)componentResourceManager.GetObject("dtpFrom.Properties.Mask.IgnoreMaskBlank");
            dtpFrom.Properties.Mask.MaskType                    = (MaskType)componentResourceManager.GetObject("dtpFrom.Properties.Mask.MaskType");
            dtpFrom.Properties.Mask.PlaceHolder                 = (char)componentResourceManager.GetObject("dtpFrom.Properties.Mask.PlaceHolder");
            dtpFrom.Properties.Mask.SaveLiteral                 = (bool)componentResourceManager.GetObject("dtpFrom.Properties.Mask.SaveLiteral");
            dtpFrom.Properties.Mask.ShowPlaceHolders            = (bool)componentResourceManager.GetObject("dtpFrom.Properties.Mask.ShowPlaceHolders");
            dtpFrom.Properties.Mask.UseMaskAsDisplayFormat      = (bool)componentResourceManager.GetObject("dtpFrom.Properties.Mask.UseMaskAsDisplayFormat");
            dtpFrom.Properties.NullValuePrompt                  = componentResourceManager.GetString("dtpFrom.Properties.NullValuePrompt");
            dtpFrom.Properties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("dtpFrom.Properties.NullValuePromptShowForEmptyValue");
            componentResourceManager.ApplyResources(labelControl1, "labelControl1");
            labelControl1.Appearance.DisabledImage  = (Image)componentResourceManager.GetObject("labelControl1.Appearance.DisabledImage");
            labelControl1.Appearance.Font           = (Font)componentResourceManager.GetObject("labelControl1.Appearance.Font");
            labelControl1.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("labelControl1.Appearance.FontSizeDelta");
            labelControl1.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("labelControl1.Appearance.FontStyleDelta");
            labelControl1.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("labelControl1.Appearance.GradientMode");
            labelControl1.Appearance.HoverImage     = (Image)componentResourceManager.GetObject("labelControl1.Appearance.HoverImage");
            labelControl1.Appearance.Image          = (Image)componentResourceManager.GetObject("labelControl1.Appearance.Image");
            labelControl1.Appearance.PressedImage   = (Image)componentResourceManager.GetObject("labelControl1.Appearance.PressedImage");
            labelControl1.Name = "labelControl1";
            componentResourceManager.ApplyResources(dtValueFrom, "dtValueFrom");
            dtValueFrom.Name = "dtValueFrom";
            dtValueFrom.Properties.AccessibleDescription      = componentResourceManager.GetString("dtValueFrom.Properties.AccessibleDescription");
            dtValueFrom.Properties.AccessibleName             = componentResourceManager.GetString("dtValueFrom.Properties.AccessibleName");
            dtValueFrom.Properties.Appearance.Font            = (Font)componentResourceManager.GetObject("dtValueFrom.Properties.Appearance.Font");
            dtValueFrom.Properties.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("dtValueFrom.Properties.Appearance.FontSizeDelta");
            dtValueFrom.Properties.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("dtValueFrom.Properties.Appearance.FontStyleDelta");
            dtValueFrom.Properties.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("dtValueFrom.Properties.Appearance.GradientMode");
            dtValueFrom.Properties.Appearance.Image           = (Image)componentResourceManager.GetObject("dtValueFrom.Properties.Appearance.Image");
            dtValueFrom.Properties.Appearance.Options.UseFont = true;
            dtValueFrom.Properties.AutoHeight = (bool)componentResourceManager.GetObject("dtValueFrom.Properties.AutoHeight");
            dtValueFrom.Properties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            dtValueFrom.Properties.CalendarTimeProperties.AccessibleDescription = componentResourceManager.GetString("dtValueFrom.Properties.CalendarTimeProperties.AccessibleDescription");
            dtValueFrom.Properties.CalendarTimeProperties.AccessibleName        = componentResourceManager.GetString("dtValueFrom.Properties.CalendarTimeProperties.AccessibleName");
            dtValueFrom.Properties.CalendarTimeProperties.AutoHeight            = (bool)componentResourceManager.GetObject("dtValueFrom.Properties.CalendarTimeProperties.AutoHeight");
            dtValueFrom.Properties.CalendarTimeProperties.Buttons.AddRange(new EditorButton[1]
            {
                new EditorButton()
            });
            dtValueFrom.Properties.CalendarTimeProperties.DisplayFormat.FormatString = "dd.MMMM.yyyy hh:mm:ss";
            dtValueFrom.Properties.CalendarTimeProperties.DisplayFormat.FormatType   = FormatType.DateTime;
            dtValueFrom.Properties.CalendarTimeProperties.EditFormat.FormatString    = "dd.MMMM.yyyy hh:mm:ss";
            dtValueFrom.Properties.CalendarTimeProperties.EditFormat.FormatType      = FormatType.DateTime;
            dtValueFrom.Properties.CalendarTimeProperties.Mask.AutoComplete          = (AutoCompleteType)componentResourceManager.GetObject("dtValueFrom.Properties.CalendarTimeProperties.Mask.AutoComplete");
            dtValueFrom.Properties.CalendarTimeProperties.Mask.BeepOnError           = (bool)componentResourceManager.GetObject("dtValueFrom.Properties.CalendarTimeProperties.Mask.BeepOnError");
            dtValueFrom.Properties.CalendarTimeProperties.Mask.EditMask                    = componentResourceManager.GetString("dtValueFrom.Properties.CalendarTimeProperties.Mask.EditMask");
            dtValueFrom.Properties.CalendarTimeProperties.Mask.IgnoreMaskBlank             = (bool)componentResourceManager.GetObject("dtValueFrom.Properties.CalendarTimeProperties.Mask.IgnoreMaskBlank");
            dtValueFrom.Properties.CalendarTimeProperties.Mask.MaskType                    = (MaskType)componentResourceManager.GetObject("dtValueFrom.Properties.CalendarTimeProperties.Mask.MaskType");
            dtValueFrom.Properties.CalendarTimeProperties.Mask.PlaceHolder                 = (char)componentResourceManager.GetObject("dtValueFrom.Properties.CalendarTimeProperties.Mask.PlaceHolder");
            dtValueFrom.Properties.CalendarTimeProperties.Mask.SaveLiteral                 = (bool)componentResourceManager.GetObject("dtValueFrom.Properties.CalendarTimeProperties.Mask.SaveLiteral");
            dtValueFrom.Properties.CalendarTimeProperties.Mask.ShowPlaceHolders            = (bool)componentResourceManager.GetObject("dtValueFrom.Properties.CalendarTimeProperties.Mask.ShowPlaceHolders");
            dtValueFrom.Properties.CalendarTimeProperties.Mask.UseMaskAsDisplayFormat      = (bool)componentResourceManager.GetObject("dtValueFrom.Properties.CalendarTimeProperties.Mask.UseMaskAsDisplayFormat");
            dtValueFrom.Properties.CalendarTimeProperties.NullValuePrompt                  = componentResourceManager.GetString("dtValueFrom.Properties.CalendarTimeProperties.NullValuePrompt");
            dtValueFrom.Properties.CalendarTimeProperties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("dtValueFrom.Properties.CalendarTimeProperties.NullValuePromptShowForEmptyValue");
            dtValueFrom.Properties.DisplayFormat.FormatString = "dd.MM.yyyy HH:mm:ss";
            dtValueFrom.Properties.DisplayFormat.FormatType   = FormatType.DateTime;
            dtValueFrom.Properties.EditFormat.FormatString    = "dd.MMMM.yyyy HH:mm:ss";
            dtValueFrom.Properties.EditFormat.FormatType      = FormatType.DateTime;
            dtValueFrom.Properties.Mask.AutoComplete          = (AutoCompleteType)componentResourceManager.GetObject("dtValueFrom.Properties.Mask.AutoComplete");
            dtValueFrom.Properties.Mask.BeepOnError           = (bool)componentResourceManager.GetObject("dtValueFrom.Properties.Mask.BeepOnError");
            dtValueFrom.Properties.Mask.EditMask                    = componentResourceManager.GetString("dtValueFrom.Properties.Mask.EditMask");
            dtValueFrom.Properties.Mask.IgnoreMaskBlank             = (bool)componentResourceManager.GetObject("dtValueFrom.Properties.Mask.IgnoreMaskBlank");
            dtValueFrom.Properties.Mask.MaskType                    = (MaskType)componentResourceManager.GetObject("dtValueFrom.Properties.Mask.MaskType");
            dtValueFrom.Properties.Mask.PlaceHolder                 = (char)componentResourceManager.GetObject("dtValueFrom.Properties.Mask.PlaceHolder");
            dtValueFrom.Properties.Mask.SaveLiteral                 = (bool)componentResourceManager.GetObject("dtValueFrom.Properties.Mask.SaveLiteral");
            dtValueFrom.Properties.Mask.ShowPlaceHolders            = (bool)componentResourceManager.GetObject("dtValueFrom.Properties.Mask.ShowPlaceHolders");
            dtValueFrom.Properties.Mask.UseMaskAsDisplayFormat      = (bool)componentResourceManager.GetObject("dtValueFrom.Properties.Mask.UseMaskAsDisplayFormat");
            dtValueFrom.Properties.NullValuePrompt                  = componentResourceManager.GetString("dtValueFrom.Properties.NullValuePrompt");
            dtValueFrom.Properties.NullValuePromptShowForEmptyValue = (bool)componentResourceManager.GetObject("dtValueFrom.Properties.NullValuePromptShowForEmptyValue");
            componentResourceManager.ApplyResources(btSave, "btSave");
            btSave.Appearance.Font            = (Font)componentResourceManager.GetObject("btSave.Appearance.Font");
            btSave.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("btSave.Appearance.FontSizeDelta");
            btSave.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("btSave.Appearance.FontStyleDelta");
            btSave.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("btSave.Appearance.GradientMode");
            btSave.Appearance.Image           = (Image)componentResourceManager.GetObject("btSave.Appearance.Image");
            btSave.Appearance.Options.UseFont = true;
            btSave.Name   = "btSave";
            btSave.Click += btSave_Click;
            componentResourceManager.ApplyResources(groupControl1, "groupControl1");
            groupControl1.Controls.Add(btSave);
            groupControl1.Controls.Add(dtValueFrom);
            groupControl1.Name        = "groupControl1";
            groupControl1.ShowCaption = false;
            componentResourceManager.ApplyResources(labelControl2, "labelControl2");
            labelControl2.Appearance.DisabledImage  = (Image)componentResourceManager.GetObject("labelControl2.Appearance.DisabledImage");
            labelControl2.Appearance.Font           = (Font)componentResourceManager.GetObject("labelControl2.Appearance.Font");
            labelControl2.Appearance.FontSizeDelta  = (int)componentResourceManager.GetObject("labelControl2.Appearance.FontSizeDelta");
            labelControl2.Appearance.FontStyleDelta = (FontStyle)componentResourceManager.GetObject("labelControl2.Appearance.FontStyleDelta");
            labelControl2.Appearance.GradientMode   = (LinearGradientMode)componentResourceManager.GetObject("labelControl2.Appearance.GradientMode");
            labelControl2.Appearance.HoverImage     = (Image)componentResourceManager.GetObject("labelControl2.Appearance.HoverImage");
            labelControl2.Appearance.Image          = (Image)componentResourceManager.GetObject("labelControl2.Appearance.Image");
            labelControl2.Appearance.PressedImage   = (Image)componentResourceManager.GetObject("labelControl2.Appearance.PressedImage");
            labelControl2.Name = "labelControl2";
            componentResourceManager.ApplyResources(simpleButton1, "simpleButton1");
            simpleButton1.Appearance.Font            = (Font)componentResourceManager.GetObject("simpleButton1.Appearance.Font");
            simpleButton1.Appearance.FontSizeDelta   = (int)componentResourceManager.GetObject("simpleButton1.Appearance.FontSizeDelta");
            simpleButton1.Appearance.FontStyleDelta  = (FontStyle)componentResourceManager.GetObject("simpleButton1.Appearance.FontStyleDelta");
            simpleButton1.Appearance.GradientMode    = (LinearGradientMode)componentResourceManager.GetObject("simpleButton1.Appearance.GradientMode");
            simpleButton1.Appearance.Image           = (Image)componentResourceManager.GetObject("simpleButton1.Appearance.Image");
            simpleButton1.Appearance.Options.UseFont = true;
            simpleButton1.DialogResult = DialogResult.Cancel;
            simpleButton1.Name         = "simpleButton1";
            simpleButton1.Click       += simpleButton1_Click;
            componentResourceManager.ApplyResources(this, "$this");
            AutoScaleMode = AutoScaleMode.Font;
            CancelButton  = simpleButton1;
            Controls.Add(simpleButton1);
            Controls.Add(labelControl2);
            Controls.Add(groupControl1);
            Controls.Add(labelControl1);
            Controls.Add(groupBox3);
            Name     = "FrmDeleteKeys";
            ShowIcon = false;
            Load    += frmDeleteKeys_Load;
            groupBox3.EndInit();
            groupBox3.ResumeLayout(false);
            checkEditBefore.Properties.EndInit();
            checkEditFrom.Properties.EndInit();
            dtpBefore.Properties.CalendarTimeProperties.EndInit();
            dtpBefore.Properties.EndInit();
            dtpFrom.Properties.CalendarTimeProperties.EndInit();
            dtpFrom.Properties.EndInit();
            dtValueFrom.Properties.CalendarTimeProperties.EndInit();
            dtValueFrom.Properties.EndInit();
            groupControl1.EndInit();
            groupControl1.ResumeLayout(false);
            ResumeLayout(false);
            PerformLayout();
        }
Ejemplo n.º 9
0
            private void InitializeComponent()
            {
                ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(BorderSidesEditor));

                Height              = 163;
                tableLayoutPanel1   = new TableLayoutPanel();
                noneCheckBox        = new CheckBox();
                allCheckBox         = new CheckBox();
                leftTopCheckBox     = new CheckBox();
                rightTopCheckBox    = new CheckBox();
                leftBottomCheckBox  = new CheckBox();
                rightBottomCheckBox = new CheckBox();
                splitterLabel       = new Label();
                tableLayoutPanel1.SuspendLayout();
                SuspendLayout();
                componentResourceManager.ApplyResources(tableLayoutPanel1, "tableLayoutPanel1");
                tableLayoutPanel1.AutoSizeMode = AutoSizeMode.GrowAndShrink;
                tableLayoutPanel1.BackColor    = SystemColors.Window;
                tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle());
                tableLayoutPanel1.Controls.Add(noneCheckBox, 0, 0);
                tableLayoutPanel1.Controls.Add(allCheckBox, 0, 2);
                tableLayoutPanel1.Controls.Add(leftTopCheckBox, 0, 3);
                tableLayoutPanel1.Controls.Add(rightTopCheckBox, 0, 4);
                tableLayoutPanel1.Controls.Add(leftBottomCheckBox, 0, 5);
                tableLayoutPanel1.Controls.Add(rightBottomCheckBox, 0, 6);
                tableLayoutPanel1.Controls.Add(splitterLabel, 0, 1);
                tableLayoutPanel1.Name = "tableLayoutPanel1";
                tableLayoutPanel1.RowStyles.Add(new RowStyle());
                tableLayoutPanel1.RowStyles.Add(new RowStyle());
                tableLayoutPanel1.RowStyles.Add(new RowStyle());
                tableLayoutPanel1.RowStyles.Add(new RowStyle());
                tableLayoutPanel1.RowStyles.Add(new RowStyle());
                tableLayoutPanel1.RowStyles.Add(new RowStyle());
                tableLayoutPanel1.RowStyles.Add(new RowStyle());
                tableLayoutPanel1.Margin = new Padding(0);

                noneCheckBox.Name   = "noneCheckBox";
                noneCheckBox.Margin = new Padding(3, 3, 3, 1);
                noneCheckBox.Text   = "无(&N)";
                noneCheckBox.Height = 20;

                allCheckBox.Name   = "allCheckBox";
                allCheckBox.Margin = new Padding(3, 3, 3, 1);
                allCheckBox.Text   = "全部(&A)";
                allCheckBox.Height = 20;

                leftTopCheckBox.Margin = new Padding(20, 1, 3, 1);
                leftTopCheckBox.Name   = "leftTopCheckBox";
                leftTopCheckBox.Text   = "左上角(&LT)";
                leftTopCheckBox.Height = 20;

                rightTopCheckBox.Margin = new Padding(20, 1, 3, 1);
                rightTopCheckBox.Name   = "rightTopCheckBox";
                rightTopCheckBox.Text   = "右上角(&RT)";
                rightTopCheckBox.Height = 20;

                leftBottomCheckBox.Margin = new Padding(20, 1, 3, 1);
                leftBottomCheckBox.Name   = "leftBottomCheckBox";
                leftBottomCheckBox.Text   = "左下角(&LB)";
                leftBottomCheckBox.Height = 20;

                rightBottomCheckBox.Margin = new Padding(20, 1, 3, 1);
                rightBottomCheckBox.Name   = "rightBottomCheckBox";
                rightBottomCheckBox.Text   = "右下角(&RB)";
                rightBottomCheckBox.Height = 20;

                splitterLabel.BackColor = SystemColors.ControlDark;
                splitterLabel.Name      = "splitterLabel";
                splitterLabel.Height    = 1;

                Controls.Add(tableLayoutPanel1);
                Padding             = new Padding(1, 1, 1, 1);
                AutoSizeMode        = AutoSizeMode.GrowAndShrink;
                AutoScaleMode       = AutoScaleMode.None;
                AutoScaleDimensions = new SizeF(6f, 13f);
                tableLayoutPanel1.ResumeLayout(false);
                tableLayoutPanel1.PerformLayout();
                ResumeLayout(false);
                PerformLayout();
                leftBottomCheckBox.CheckedChanged  += leftBottomCheckBox_CheckedChanged;
                rightBottomCheckBox.CheckedChanged += rightBottomCheckBox_CheckedChanged;
                rightTopCheckBox.CheckedChanged    += rightTopCheckBox_CheckedChanged;
                leftTopCheckBox.CheckedChanged     += leftTopBox_CheckedChanged;
                noneCheckBox.CheckedChanged        += noneCheckBox_CheckedChanged;
                allCheckBox.CheckedChanged         += allCheckBox_CheckedChanged;
                noneCheckBox.Click += noneCheckBoxClicked;
                allCheckBox.Click  += allCheckBoxClicked;
            }
Ejemplo n.º 10
0
Archivo: test3.cs Proyecto: mono/gert
	static void Main ()
	{
		ComponentResourceManager crm = new ComponentResourceManager (
			typeof (MyComponent));

		MyComponent comp = new MyComponent ("Welcome", "System");
		crm.IgnoreCase = true;
		crm.ApplyResources (comp, "$this", new CultureInfo ("nl-BE"));

		Assert.IsNotNull (comp.BackgroundImage, "#A1");
#if NET_2_0
		Assert.IsNull (comp.Company, "#A2");
#else
		Assert.IsNotNull (comp.Company, "#A2");
		Assert.AreEqual ("Company (NL-NL)", comp.Company, "#A3");
#endif
		Assert.AreEqual (0, comp.Interval, "#A4");
		Assert.IsTrue (comp.Localizable, "#A5");
		Assert.IsNotNull (comp.Name, "#A6");
		Assert.AreEqual ("Component (NL-NL)", comp.Name, "#A7");
		Assert.IsNotNull (comp.Text, "#A8");
		Assert.AreEqual ("Mono", comp.Text, "#A9");
		Assert.IsNotNull (comp.Title, "#A10");
		Assert.AreEqual ("Welcome", comp.Title, "#A11");
		Assert.IsNotNull (comp.Zone, "#A12");
		Assert.AreEqual ("Zone (NL-NL)", comp.Zone, "#A13");

		comp = new OURComponent ("Welcome", "System");
		crm = new ComponentResourceManager (typeof (OURComponent));
		crm.ApplyResources (comp, "$this", new CultureInfo ("nl-BE"));

		Assert.IsNotNull (comp.BackgroundImage, "#B1");
#if NET_2_0
		Assert.IsNull (comp.Company, "#B2");
#else
		Assert.IsNotNull (comp.Company, "#B2");
		Assert.AreEqual ("Company (nl-BE)", comp.Company, "#B3");
#endif
		Assert.AreEqual (0, comp.Interval, "#B4");
		Assert.IsTrue (comp.Localizable, "#B5");
		Assert.IsNull (comp.Name, "#B6");
		Assert.IsNotNull (comp.Text, "#B7");
		Assert.AreEqual ("Mono", comp.Text, "#B8");
		Assert.IsNotNull (comp.Title, "#B9");
		Assert.AreEqual ("Welcome", comp.Title, "#B10");
		Assert.IsNotNull (comp.Zone, "#B11");
		Assert.AreEqual ("Zone (nl-BE)", comp.Zone, "#B12");

		comp = new OURComponent ("Welcome", "System");
		crm = new ComponentResourceManager (typeof (OURComponent));
		crm.ApplyResources (comp, "$this", CultureInfo.InvariantCulture);

		Assert.IsNotNull (comp.BackgroundImage, "#C1");
		Assert.IsNotNull (comp.Company, "#C2");
		Assert.AreEqual ("OSF", comp.Company, "#C3");
		Assert.AreEqual (0, comp.Interval, "#C4");
		Assert.IsTrue (comp.Localizable, "#C5");
		Assert.IsNull (comp.Name, "#C6");
		Assert.IsNotNull (comp.Text, "#C7");
		Assert.AreEqual ("Mono", comp.Text, "#C8");
		Assert.IsNotNull (comp.Title, "#C9");
		Assert.AreEqual ("Welcome", comp.Title, "#C10");
#if NET_2_0
		Assert.IsNull (comp.Zone, "#C11");
#else
		Assert.IsNotNull (comp.Zone, "#C11");
		Assert.AreEqual (string.Empty, comp.Zone, "#C12");
#endif

		ResourceManager rm = new ResourceManager ("MonO.TestS.MYcomPonenT",
			Assembly.GetExecutingAssembly ());
		Assert.IsNotNull (rm.GetString ("$this.Company", new CultureInfo ("fr-FR")), "#D1");
#if NET_2_0
		Assert.AreEqual ("OSF", rm.GetString ("$this.Company", new CultureInfo ("fr-FR")), "#D2");
#else
		Assert.AreEqual ("Company (fr-FR)", rm.GetString ("$this.Company", new CultureInfo ("fr-FR")), "#D2");
#endif

		rm = new ResourceManager ("MonO.TestS.MYcomPonenT",
			Assembly.GetExecutingAssembly ());
		Assert.IsNotNull (rm.GetString ("$this.Company", CultureInfo.InvariantCulture), "#E1");
		Assert.AreEqual ("OSF", rm.GetString ("$this.Company", CultureInfo.InvariantCulture), "#E2");

		rm = new ResourceManager ("OurcomPonenT", Assembly.GetExecutingAssembly ());
		Assert.IsNotNull (rm.GetString ("$this.Company", new CultureInfo ("nl-BE")), "#F1");
#if NET_2_0
		Assert.AreEqual ("OSF", rm.GetString ("$this.Company", new CultureInfo ("nl-BE")), "#F2");
#else
		Assert.AreEqual ("Company (nl-BE)", rm.GetString ("$this.Company", new CultureInfo ("nl-BE")), "#F2");
#endif

		rm = new ResourceManager ("OurcomPonenT", Assembly.GetExecutingAssembly ());
		Assert.IsNotNull (rm.GetString ("$this.Company", CultureInfo.InvariantCulture), "#G1");
		Assert.AreEqual ("OSF", rm.GetString ("$this.Company", CultureInfo.InvariantCulture), "#G2");
	}
Ejemplo n.º 11
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(TextEditor));

            btnLoad              = new Button();
            btnSave              = new Button();
            btnSend              = new Button();
            btnSelectBackColor   = new Button();
            btnSelectForeColor   = new Button();
            btnSelectFont        = new Button();
            fontDialog1          = new FontDialog();
            colorDialogBackColor = new ColorDialog();
            colorDialogForeColor = new ColorDialog();
            saveFileDialog1      = new SaveFileDialog();
            openFileDialog1      = new OpenFileDialog();
            btnClear             = new Button();
            rbAlignRight         = new RadioButton();
            rbAlignCenter        = new RadioButton();
            rbAlignLeft          = new RadioButton();
            btnPreview           = new Button();
            btnBackgroundImage   = new Button();
            textBox1             = new TextBox();
            openFileDialog2      = new OpenFileDialog();
            SuspendLayout();
            btnLoad.AccessibleDescription = (string)null;
            btnLoad.AccessibleName        = (string)null;
            componentResourceManager.ApplyResources((object)btnLoad, "btnLoad");
            btnLoad.BackgroundImage         = (Image)null;
            btnLoad.Font                    = (Font)null;
            btnLoad.Name                    = "btnLoad";
            btnLoad.UseVisualStyleBackColor = true;
            btnLoad.Click                  += new EventHandler(btnLoad_Click);
            btnSave.AccessibleDescription   = (string)null;
            btnSave.AccessibleName          = (string)null;
            componentResourceManager.ApplyResources((object)btnSave, "btnSave");
            btnSave.BackgroundImage         = (Image)null;
            btnSave.Font                    = (Font)null;
            btnSave.Name                    = "btnSave";
            btnSave.UseVisualStyleBackColor = true;
            btnSave.Click                  += new EventHandler(btnSave_Click);
            btnSend.AccessibleDescription   = (string)null;
            btnSend.AccessibleName          = (string)null;
            componentResourceManager.ApplyResources((object)btnSend, "btnSend");
            btnSend.BackgroundImage                  = (Image)null;
            btnSend.Font                             = (Font)null;
            btnSend.Name                             = "btnSend";
            btnSend.UseVisualStyleBackColor          = true;
            btnSend.Click                           += new EventHandler(btnSend_Click);
            btnSelectBackColor.AccessibleDescription = (string)null;
            btnSelectBackColor.AccessibleName        = (string)null;
            componentResourceManager.ApplyResources((object)btnSelectBackColor, "btnSelectBackColor");
            btnSelectBackColor.BackgroundImage         = (Image)null;
            btnSelectBackColor.Font                    = (Font)null;
            btnSelectBackColor.Name                    = "btnSelectBackColor";
            btnSelectBackColor.UseVisualStyleBackColor = true;
            btnSelectBackColor.Click                  += new EventHandler(btnSelectBackColor_Click);
            btnSelectForeColor.AccessibleDescription   = (string)null;
            btnSelectForeColor.AccessibleName          = (string)null;
            componentResourceManager.ApplyResources((object)btnSelectForeColor, "btnSelectForeColor");
            btnSelectForeColor.BackgroundImage         = (Image)null;
            btnSelectForeColor.Font                    = (Font)null;
            btnSelectForeColor.Name                    = "btnSelectForeColor";
            btnSelectForeColor.UseVisualStyleBackColor = true;
            btnSelectForeColor.Click                  += new EventHandler(btnSelectForeColor_Click);
            btnSelectFont.AccessibleDescription        = (string)null;
            btnSelectFont.AccessibleName               = (string)null;
            componentResourceManager.ApplyResources((object)btnSelectFont, "btnSelectFont");
            btnSelectFont.BackgroundImage         = (Image)null;
            btnSelectFont.Font                    = (Font)null;
            btnSelectFont.Name                    = "btnSelectFont";
            btnSelectFont.UseVisualStyleBackColor = true;
            btnSelectFont.Click                  += new EventHandler(btnSelectFont_Click);
            saveFileDialog1.DefaultExt            = "taf";
            componentResourceManager.ApplyResources((object)saveFileDialog1, "saveFileDialog1");
            saveFileDialog1.RestoreDirectory = true;
            saveFileDialog1.FileOk          += new CancelEventHandler(saveFileDialog1_FileOk);
            componentResourceManager.ApplyResources((object)openFileDialog1, "openFileDialog1");
            openFileDialog1.RestoreDirectory = true;
            openFileDialog1.FileOk          += new CancelEventHandler(openFileDialog1_FileOk);
            btnClear.AccessibleDescription   = (string)null;
            btnClear.AccessibleName          = (string)null;
            componentResourceManager.ApplyResources((object)btnClear, "btnClear");
            btnClear.BackgroundImage           = (Image)null;
            btnClear.Font                      = (Font)null;
            btnClear.Name                      = "btnClear";
            btnClear.UseVisualStyleBackColor   = true;
            btnClear.Click                    += new EventHandler(btnClear_Click);
            rbAlignRight.AccessibleDescription = (string)null;
            rbAlignRight.AccessibleName        = (string)null;
            componentResourceManager.ApplyResources((object)rbAlignRight, "rbAlignRight");
            rbAlignRight.BackgroundImage         = (Image)null;
            rbAlignRight.Font                    = (Font)null;
            rbAlignRight.Name                    = "rbAlignRight";
            rbAlignRight.UseVisualStyleBackColor = true;
            rbAlignRight.CheckedChanged         += new EventHandler(rbAlignRight_CheckedChanged);
            rbAlignCenter.AccessibleDescription  = (string)null;
            rbAlignCenter.AccessibleName         = (string)null;
            componentResourceManager.ApplyResources((object)rbAlignCenter, "rbAlignCenter");
            rbAlignCenter.BackgroundImage         = (Image)null;
            rbAlignCenter.Font                    = (Font)null;
            rbAlignCenter.Name                    = "rbAlignCenter";
            rbAlignCenter.UseVisualStyleBackColor = true;
            rbAlignCenter.CheckedChanged         += new EventHandler(rbAlignRight_CheckedChanged);
            rbAlignLeft.AccessibleDescription     = (string)null;
            rbAlignLeft.AccessibleName            = (string)null;
            componentResourceManager.ApplyResources((object)rbAlignLeft, "rbAlignLeft");
            rbAlignLeft.BackgroundImage         = (Image)null;
            rbAlignLeft.Checked                 = true;
            rbAlignLeft.Font                    = (Font)null;
            rbAlignLeft.Name                    = "rbAlignLeft";
            rbAlignLeft.TabStop                 = true;
            rbAlignLeft.UseVisualStyleBackColor = true;
            rbAlignLeft.CheckedChanged         += new EventHandler(rbAlignRight_CheckedChanged);
            btnPreview.AccessibleDescription    = (string)null;
            btnPreview.AccessibleName           = (string)null;
            componentResourceManager.ApplyResources((object)btnPreview, "btnPreview");
            btnPreview.BackgroundImage               = (Image)null;
            btnPreview.Font                          = (Font)null;
            btnPreview.Name                          = "btnPreview";
            btnPreview.UseVisualStyleBackColor       = true;
            btnPreview.Click                        += new EventHandler(btnPreview_Click);
            btnBackgroundImage.AccessibleDescription = (string)null;
            btnBackgroundImage.AccessibleName        = (string)null;
            componentResourceManager.ApplyResources((object)btnBackgroundImage, "btnBackgroundImage");
            btnBackgroundImage.BackgroundImage         = (Image)null;
            btnBackgroundImage.Font                    = (Font)null;
            btnBackgroundImage.Name                    = "btnBackgroundImage";
            btnBackgroundImage.UseVisualStyleBackColor = true;
            btnBackgroundImage.Click                  += new EventHandler(btnBackgroundImage_Click);
            textBox1.AccessibleDescription             = (string)null;
            textBox1.AccessibleName                    = (string)null;
            componentResourceManager.ApplyResources((object)textBox1, "textBox1");
            textBox1.BackColor       = Settings.Default.LastBackColor;
            textBox1.BackgroundImage = (Image)null;
            textBox1.DataBindings.Add(new Binding("Text", (object)Settings.Default, "LastText", true, DataSourceUpdateMode.OnPropertyChanged));
            textBox1.DataBindings.Add(new Binding("BackColor", (object)Settings.Default, "LastBackColor", true, DataSourceUpdateMode.OnPropertyChanged));
            textBox1.DataBindings.Add(new Binding("ForeColor", (object)Settings.Default, "LastForeColor", true, DataSourceUpdateMode.OnPropertyChanged));
            textBox1.DataBindings.Add(new Binding("Font", (object)Settings.Default, "LastFont", true, DataSourceUpdateMode.OnPropertyChanged));
            textBox1.Font      = Settings.Default.LastFont;
            textBox1.ForeColor = Settings.Default.LastForeColor;
            textBox1.Name      = "textBox1";
            textBox1.Text      = Settings.Default.LastText;
            componentResourceManager.ApplyResources((object)openFileDialog2, "openFileDialog2");
            openFileDialog2.RestoreDirectory = true;
            openFileDialog2.FileOk          += new CancelEventHandler(openFileDialog2_FileOk);
            AccessibleDescription            = (string)null;
            AccessibleName = (string)null;
            componentResourceManager.ApplyResources((object)this, "$this");
            AutoScaleMode   = AutoScaleMode.Font;
            BackColor       = SystemColors.Control;
            BackgroundImage = (Image)null;
            Controls.Add((Control)btnBackgroundImage);
            Controls.Add((Control)btnPreview);
            Controls.Add((Control)rbAlignRight);
            Controls.Add((Control)rbAlignCenter);
            Controls.Add((Control)rbAlignLeft);
            Controls.Add((Control)btnClear);
            Controls.Add((Control)btnLoad);
            Controls.Add((Control)btnSave);
            Controls.Add((Control)btnSend);
            Controls.Add((Control)btnSelectBackColor);
            Controls.Add((Control)btnSelectForeColor);
            Controls.Add((Control)btnSelectFont);
            Controls.Add((Control)textBox1);
            Font            = (Font)null;
            FormBorderStyle = FormBorderStyle.FixedSingle;
            Icon            = (Icon)null;
            MaximizeBox     = false;
            MinimizeBox     = false;
            Name            = nameof(TextEditor);
            Load           += new EventHandler(TextEditor_Load);
            FormClosing    += new FormClosingEventHandler(TextEditor_FormClosing);
            ResumeLayout(false);
            PerformLayout();
        }
Ejemplo n.º 12
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(UserManAddUser));

            this.butCancel     = new Button();
            this.groupBox19    = new GroupBox();
            this.tbUserCPwEdit = new TextBox();
            this.tbUserPwEdit  = new TextBox();
            this.tbUserNmEdit  = new TextBox();
            this.lbUserCPwEdit = new Label();
            this.lbUserPwEdit  = new Label();
            this.lbUserNmEdit  = new Label();
            this.butUserSave   = new Button();
            this.groupBox21    = new GroupBox();
            this.cbSelectAll   = new CheckBox();
            this.cbSManagement = new CheckBox();
            this.cbLog         = new CheckBox();
            this.cbDManagement = new CheckBox();
            this.cbUManagement = new CheckBox();
            this.groupBox20    = new GroupBox();
            this.rbRole1       = new RadioButton();
            this.rbRole2       = new RadioButton();
            this.groupBox19.SuspendLayout();
            this.groupBox21.SuspendLayout();
            this.groupBox20.SuspendLayout();
            base.SuspendLayout();
            this.butCancel.BackColor    = SystemColors.Control;
            this.butCancel.DialogResult = DialogResult.Cancel;
            componentResourceManager.ApplyResources(this.butCancel, "butCancel");
            this.butCancel.Name = "butCancel";
            this.butCancel.UseVisualStyleBackColor = false;
            this.groupBox19.Controls.Add(this.tbUserCPwEdit);
            this.groupBox19.Controls.Add(this.tbUserPwEdit);
            this.groupBox19.Controls.Add(this.tbUserNmEdit);
            this.groupBox19.Controls.Add(this.lbUserCPwEdit);
            this.groupBox19.Controls.Add(this.lbUserPwEdit);
            this.groupBox19.Controls.Add(this.lbUserNmEdit);
            componentResourceManager.ApplyResources(this.groupBox19, "groupBox19");
            this.groupBox19.ForeColor = SystemColors.ControlText;
            this.groupBox19.Name      = "groupBox19";
            this.groupBox19.TabStop   = false;
            componentResourceManager.ApplyResources(this.tbUserCPwEdit, "tbUserCPwEdit");
            this.tbUserCPwEdit.ForeColor             = Color.Black;
            this.tbUserCPwEdit.Name                  = "tbUserCPwEdit";
            this.tbUserCPwEdit.UseSystemPasswordChar = true;
            this.tbUserCPwEdit.KeyPress             += new KeyPressEventHandler(this.password_KeyPress);
            componentResourceManager.ApplyResources(this.tbUserPwEdit, "tbUserPwEdit");
            this.tbUserPwEdit.ForeColor             = Color.Black;
            this.tbUserPwEdit.Name                  = "tbUserPwEdit";
            this.tbUserPwEdit.UseSystemPasswordChar = true;
            this.tbUserPwEdit.KeyPress             += new KeyPressEventHandler(this.password_KeyPress);
            componentResourceManager.ApplyResources(this.tbUserNmEdit, "tbUserNmEdit");
            this.tbUserNmEdit.ForeColor = Color.Black;
            this.tbUserNmEdit.Name      = "tbUserNmEdit";
            this.tbUserNmEdit.KeyPress += new KeyPressEventHandler(this.UserNm_KeyPress);
            componentResourceManager.ApplyResources(this.lbUserCPwEdit, "lbUserCPwEdit");
            this.lbUserCPwEdit.ForeColor = Color.Black;
            this.lbUserCPwEdit.Name      = "lbUserCPwEdit";
            componentResourceManager.ApplyResources(this.lbUserPwEdit, "lbUserPwEdit");
            this.lbUserPwEdit.ForeColor = Color.Black;
            this.lbUserPwEdit.Name      = "lbUserPwEdit";
            componentResourceManager.ApplyResources(this.lbUserNmEdit, "lbUserNmEdit");
            this.lbUserNmEdit.ForeColor = Color.Black;
            this.lbUserNmEdit.Name      = "lbUserNmEdit";
            this.butUserSave.BackColor  = SystemColors.Control;
            componentResourceManager.ApplyResources(this.butUserSave, "butUserSave");
            this.butUserSave.Name = "butUserSave";
            this.butUserSave.UseVisualStyleBackColor = false;
            this.butUserSave.Click += new System.EventHandler(this.butUserSave_Click);
            this.groupBox21.Controls.Add(this.cbSelectAll);
            this.groupBox21.Controls.Add(this.cbSManagement);
            this.groupBox21.Controls.Add(this.cbLog);
            this.groupBox21.Controls.Add(this.cbDManagement);
            this.groupBox21.Controls.Add(this.cbUManagement);
            componentResourceManager.ApplyResources(this.groupBox21, "groupBox21");
            this.groupBox21.ForeColor = SystemColors.ControlText;
            this.groupBox21.Name      = "groupBox21";
            this.groupBox21.TabStop   = false;
            componentResourceManager.ApplyResources(this.cbSelectAll, "cbSelectAll");
            this.cbSelectAll.ForeColor = Color.Black;
            this.cbSelectAll.Name      = "cbSelectAll";
            this.cbSelectAll.UseVisualStyleBackColor = true;
            this.cbSelectAll.CheckedChanged         += new System.EventHandler(this.cbSelectAll_CheckedChanged);
            componentResourceManager.ApplyResources(this.cbSManagement, "cbSManagement");
            this.cbSManagement.ForeColor = Color.Black;
            this.cbSManagement.Name      = "cbSManagement";
            this.cbSManagement.UseVisualStyleBackColor = true;
            componentResourceManager.ApplyResources(this.cbLog, "cbLog");
            this.cbLog.ForeColor = Color.Black;
            this.cbLog.Name      = "cbLog";
            this.cbLog.UseVisualStyleBackColor = true;
            componentResourceManager.ApplyResources(this.cbDManagement, "cbDManagement");
            this.cbDManagement.ForeColor = Color.Black;
            this.cbDManagement.Name      = "cbDManagement";
            this.cbDManagement.UseVisualStyleBackColor = true;
            componentResourceManager.ApplyResources(this.cbUManagement, "cbUManagement");
            this.cbUManagement.ForeColor = Color.Black;
            this.cbUManagement.Name      = "cbUManagement";
            this.cbUManagement.UseVisualStyleBackColor = true;
            this.groupBox20.Controls.Add(this.rbRole1);
            this.groupBox20.Controls.Add(this.rbRole2);
            componentResourceManager.ApplyResources(this.groupBox20, "groupBox20");
            this.groupBox20.ForeColor = SystemColors.ControlText;
            this.groupBox20.Name      = "groupBox20";
            this.groupBox20.TabStop   = false;
            componentResourceManager.ApplyResources(this.rbRole1, "rbRole1");
            this.rbRole1.Checked   = true;
            this.rbRole1.ForeColor = Color.Black;
            this.rbRole1.Name      = "rbRole1";
            this.rbRole1.TabStop   = true;
            this.rbRole1.UseVisualStyleBackColor = true;
            this.rbRole1.CheckedChanged         += new System.EventHandler(this.rbRole1_CheckedChanged);
            componentResourceManager.ApplyResources(this.rbRole2, "rbRole2");
            this.rbRole2.ForeColor = Color.Black;
            this.rbRole2.Name      = "rbRole2";
            this.rbRole2.UseVisualStyleBackColor = true;
            base.AutoScaleMode = AutoScaleMode.None;
            base.CancelButton  = this.butCancel;
            componentResourceManager.ApplyResources(this, "$this");
            base.Controls.Add(this.butCancel);
            base.Controls.Add(this.groupBox19);
            base.Controls.Add(this.butUserSave);
            base.Controls.Add(this.groupBox21);
            base.Controls.Add(this.groupBox20);
            base.FormBorderStyle = FormBorderStyle.FixedToolWindow;
            base.MaximizeBox     = false;
            base.MinimizeBox     = false;
            base.Name            = "UserManAddUser";
            base.ShowInTaskbar   = false;
            this.groupBox19.ResumeLayout(false);
            this.groupBox19.PerformLayout();
            this.groupBox21.ResumeLayout(false);
            this.groupBox21.PerformLayout();
            this.groupBox20.ResumeLayout(false);
            this.groupBox20.PerformLayout();
            base.ResumeLayout(false);
        }
Ejemplo n.º 13
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(SysManSNMP));

            this.groupBox2          = new GroupBox();
            this.label2             = new Label();
            this.label3             = new Label();
            this.lbSysTrapAuthenPw  = new Label();
            this.lbSysTrapPrivacyPw = new Label();
            this.label1             = new Label();
            this.cbTrapSnmpV        = new ComboBox();
            this.cbSysTrapAuthen    = new ComboBox();
            this.cbSysTrapPrivacy   = new ComboBox();
            this.tbSysTrapUserNm    = new TextBox();
            this.tbSysTrapPort      = new TextBox();
            this.lbSysTrapPort      = new Label();
            this.lbTrapUsername     = new Label();
            this.tbSysTrapAuthenPw  = new TextBox();
            this.tbSysTrapPrivacyPw = new TextBox();
            this.groupBox25         = new GroupBox();
            this.label6             = new Label();
            this.label8             = new Label();
            this.cbSnmpV            = new ComboBox();
            this.tbSysRetry         = new TextBox();
            this.lbSysRetry         = new Label();
            this.cbSysAuthen        = new ComboBox();
            this.cbSysPrivacy       = new ComboBox();
            this.tbSysPort          = new TextBox();
            this.lbSysPort          = new Label();
            this.tbSysUserNm        = new TextBox();
            this.lbUsername         = new Label();
            this.labAuthen          = new Label();
            this.labPrivacy         = new Label();
            this.tbSysAuthenPw      = new TextBox();
            this.lbSysAuthenPw      = new Label();
            this.tbSysPrivacyPw     = new TextBox();
            this.lbSysPrivacyPw     = new Label();
            this.tbSysTimeOut       = new TextBox();
            this.lbtimeout          = new Label();
            this.butSysparaSave     = new Button();
            this.groupBox2.SuspendLayout();
            this.groupBox25.SuspendLayout();
            base.SuspendLayout();
            this.groupBox2.Controls.Add(this.label2);
            this.groupBox2.Controls.Add(this.label3);
            this.groupBox2.Controls.Add(this.lbSysTrapAuthenPw);
            this.groupBox2.Controls.Add(this.lbSysTrapPrivacyPw);
            this.groupBox2.Controls.Add(this.label1);
            this.groupBox2.Controls.Add(this.cbTrapSnmpV);
            this.groupBox2.Controls.Add(this.cbSysTrapAuthen);
            this.groupBox2.Controls.Add(this.cbSysTrapPrivacy);
            this.groupBox2.Controls.Add(this.tbSysTrapUserNm);
            this.groupBox2.Controls.Add(this.tbSysTrapPort);
            this.groupBox2.Controls.Add(this.lbSysTrapPort);
            this.groupBox2.Controls.Add(this.lbTrapUsername);
            this.groupBox2.Controls.Add(this.tbSysTrapAuthenPw);
            this.groupBox2.Controls.Add(this.tbSysTrapPrivacyPw);
            componentResourceManager.ApplyResources(this.groupBox2, "groupBox2");
            this.groupBox2.ForeColor = Color.FromArgb(20, 73, 160);
            this.groupBox2.Name      = "groupBox2";
            this.groupBox2.TabStop   = false;
            componentResourceManager.ApplyResources(this.label2, "label2");
            this.label2.ForeColor = Color.Black;
            this.label2.Name      = "label2";
            componentResourceManager.ApplyResources(this.label3, "label3");
            this.label3.ForeColor = Color.Black;
            this.label3.Name      = "label3";
            componentResourceManager.ApplyResources(this.lbSysTrapAuthenPw, "lbSysTrapAuthenPw");
            this.lbSysTrapAuthenPw.ForeColor = Color.Black;
            this.lbSysTrapAuthenPw.Name      = "lbSysTrapAuthenPw";
            componentResourceManager.ApplyResources(this.lbSysTrapPrivacyPw, "lbSysTrapPrivacyPw");
            this.lbSysTrapPrivacyPw.ForeColor = Color.Black;
            this.lbSysTrapPrivacyPw.Name      = "lbSysTrapPrivacyPw";
            componentResourceManager.ApplyResources(this.label1, "label1");
            this.label1.ForeColor          = Color.Black;
            this.label1.Name               = "label1";
            this.cbTrapSnmpV.DropDownStyle = ComboBoxStyle.DropDownList;
            componentResourceManager.ApplyResources(this.cbTrapSnmpV, "cbTrapSnmpV");
            this.cbTrapSnmpV.ForeColor         = Color.Black;
            this.cbTrapSnmpV.FormattingEnabled = true;
            this.cbTrapSnmpV.Items.AddRange(new object[]
            {
                componentResourceManager.GetString("cbTrapSnmpV.Items"),
                componentResourceManager.GetString("cbTrapSnmpV.Items1")
            });
            this.cbTrapSnmpV.Name = "cbTrapSnmpV";
            this.cbTrapSnmpV.SelectedIndexChanged += new System.EventHandler(this.cbTrapSnmpV_SelectedIndexChanged);
            this.cbSysTrapAuthen.DropDownStyle     = ComboBoxStyle.DropDownList;
            componentResourceManager.ApplyResources(this.cbSysTrapAuthen, "cbSysTrapAuthen");
            this.cbSysTrapAuthen.ForeColor         = Color.Black;
            this.cbSysTrapAuthen.FormattingEnabled = true;
            this.cbSysTrapAuthen.Items.AddRange(new object[]
            {
                componentResourceManager.GetString("cbSysTrapAuthen.Items"),
                componentResourceManager.GetString("cbSysTrapAuthen.Items1"),
                componentResourceManager.GetString("cbSysTrapAuthen.Items2")
            });
            this.cbSysTrapAuthen.Name           = "cbSysTrapAuthen";
            this.cbSysTrapPrivacy.DropDownStyle = ComboBoxStyle.DropDownList;
            componentResourceManager.ApplyResources(this.cbSysTrapPrivacy, "cbSysTrapPrivacy");
            this.cbSysTrapPrivacy.ForeColor         = Color.Black;
            this.cbSysTrapPrivacy.FormattingEnabled = true;
            this.cbSysTrapPrivacy.Items.AddRange(new object[]
            {
                componentResourceManager.GetString("cbSysTrapPrivacy.Items"),
                componentResourceManager.GetString("cbSysTrapPrivacy.Items1"),
                componentResourceManager.GetString("cbSysTrapPrivacy.Items2")
            });
            this.cbSysTrapPrivacy.Name = "cbSysTrapPrivacy";
            componentResourceManager.ApplyResources(this.tbSysTrapUserNm, "tbSysTrapUserNm");
            this.tbSysTrapUserNm.ForeColor = Color.Black;
            this.tbSysTrapUserNm.Name      = "tbSysTrapUserNm";
            componentResourceManager.ApplyResources(this.tbSysTrapPort, "tbSysTrapPort");
            this.tbSysTrapPort.ForeColor = Color.Black;
            this.tbSysTrapPort.Name      = "tbSysTrapPort";
            this.tbSysTrapPort.KeyPress += new KeyPressEventHandler(this.digit_KeyPress);
            componentResourceManager.ApplyResources(this.lbSysTrapPort, "lbSysTrapPort");
            this.lbSysTrapPort.ForeColor = Color.Black;
            this.lbSysTrapPort.Name      = "lbSysTrapPort";
            componentResourceManager.ApplyResources(this.lbTrapUsername, "lbTrapUsername");
            this.lbTrapUsername.ForeColor = Color.Black;
            this.lbTrapUsername.Name      = "lbTrapUsername";
            componentResourceManager.ApplyResources(this.tbSysTrapAuthenPw, "tbSysTrapAuthenPw");
            this.tbSysTrapAuthenPw.ForeColor             = Color.Black;
            this.tbSysTrapAuthenPw.Name                  = "tbSysTrapAuthenPw";
            this.tbSysTrapAuthenPw.UseSystemPasswordChar = true;
            componentResourceManager.ApplyResources(this.tbSysTrapPrivacyPw, "tbSysTrapPrivacyPw");
            this.tbSysTrapPrivacyPw.ForeColor             = Color.Black;
            this.tbSysTrapPrivacyPw.Name                  = "tbSysTrapPrivacyPw";
            this.tbSysTrapPrivacyPw.UseSystemPasswordChar = true;
            this.groupBox25.Controls.Add(this.label6);
            this.groupBox25.Controls.Add(this.label8);
            this.groupBox25.Controls.Add(this.cbSnmpV);
            this.groupBox25.Controls.Add(this.tbSysRetry);
            this.groupBox25.Controls.Add(this.lbSysRetry);
            this.groupBox25.Controls.Add(this.cbSysAuthen);
            this.groupBox25.Controls.Add(this.cbSysPrivacy);
            this.groupBox25.Controls.Add(this.tbSysPort);
            this.groupBox25.Controls.Add(this.lbSysPort);
            this.groupBox25.Controls.Add(this.tbSysUserNm);
            this.groupBox25.Controls.Add(this.lbUsername);
            this.groupBox25.Controls.Add(this.labAuthen);
            this.groupBox25.Controls.Add(this.labPrivacy);
            this.groupBox25.Controls.Add(this.tbSysAuthenPw);
            this.groupBox25.Controls.Add(this.lbSysAuthenPw);
            this.groupBox25.Controls.Add(this.tbSysPrivacyPw);
            this.groupBox25.Controls.Add(this.lbSysPrivacyPw);
            this.groupBox25.Controls.Add(this.tbSysTimeOut);
            this.groupBox25.Controls.Add(this.lbtimeout);
            componentResourceManager.ApplyResources(this.groupBox25, "groupBox25");
            this.groupBox25.ForeColor = Color.FromArgb(20, 73, 160);
            this.groupBox25.Name      = "groupBox25";
            this.groupBox25.TabStop   = false;
            componentResourceManager.ApplyResources(this.label6, "label6");
            this.label6.ForeColor = Color.Black;
            this.label6.Name      = "label6";
            componentResourceManager.ApplyResources(this.label8, "label8");
            this.label8.ForeColor      = Color.Black;
            this.label8.Name           = "label8";
            this.cbSnmpV.DropDownStyle = ComboBoxStyle.DropDownList;
            componentResourceManager.ApplyResources(this.cbSnmpV, "cbSnmpV");
            this.cbSnmpV.ForeColor         = Color.Black;
            this.cbSnmpV.FormattingEnabled = true;
            this.cbSnmpV.Items.AddRange(new object[]
            {
                componentResourceManager.GetString("cbSnmpV.Items"),
                componentResourceManager.GetString("cbSnmpV.Items1"),
                componentResourceManager.GetString("cbSnmpV.Items2")
            });
            this.cbSnmpV.Name = "cbSnmpV";
            this.cbSnmpV.SelectedIndexChanged += new System.EventHandler(this.cbSnmpV_SelectedIndexChanged);
            componentResourceManager.ApplyResources(this.tbSysRetry, "tbSysRetry");
            this.tbSysRetry.ForeColor = Color.Black;
            this.tbSysRetry.Name      = "tbSysRetry";
            this.tbSysRetry.KeyPress += new KeyPressEventHandler(this.digit_KeyPress);
            componentResourceManager.ApplyResources(this.lbSysRetry, "lbSysRetry");
            this.lbSysRetry.ForeColor      = Color.Black;
            this.lbSysRetry.Name           = "lbSysRetry";
            this.cbSysAuthen.DropDownStyle = ComboBoxStyle.DropDownList;
            componentResourceManager.ApplyResources(this.cbSysAuthen, "cbSysAuthen");
            this.cbSysAuthen.ForeColor         = Color.Black;
            this.cbSysAuthen.FormattingEnabled = true;
            this.cbSysAuthen.Items.AddRange(new object[]
            {
                componentResourceManager.GetString("cbSysAuthen.Items"),
                componentResourceManager.GetString("cbSysAuthen.Items1"),
                componentResourceManager.GetString("cbSysAuthen.Items2")
            });
            this.cbSysAuthen.Name           = "cbSysAuthen";
            this.cbSysPrivacy.DropDownStyle = ComboBoxStyle.DropDownList;
            componentResourceManager.ApplyResources(this.cbSysPrivacy, "cbSysPrivacy");
            this.cbSysPrivacy.ForeColor         = Color.Black;
            this.cbSysPrivacy.FormattingEnabled = true;
            this.cbSysPrivacy.Items.AddRange(new object[]
            {
                componentResourceManager.GetString("cbSysPrivacy.Items"),
                componentResourceManager.GetString("cbSysPrivacy.Items1"),
                componentResourceManager.GetString("cbSysPrivacy.Items2")
            });
            this.cbSysPrivacy.Name = "cbSysPrivacy";
            componentResourceManager.ApplyResources(this.tbSysPort, "tbSysPort");
            this.tbSysPort.ForeColor = Color.Black;
            this.tbSysPort.Name      = "tbSysPort";
            this.tbSysPort.KeyPress += new KeyPressEventHandler(this.digit_KeyPress);
            componentResourceManager.ApplyResources(this.lbSysPort, "lbSysPort");
            this.lbSysPort.ForeColor = Color.Black;
            this.lbSysPort.Name      = "lbSysPort";
            componentResourceManager.ApplyResources(this.tbSysUserNm, "tbSysUserNm");
            this.tbSysUserNm.ForeColor = Color.Black;
            this.tbSysUserNm.Name      = "tbSysUserNm";
            this.tbSysUserNm.KeyPress += new KeyPressEventHandler(this.tbSysUserNm_KeyPress);
            componentResourceManager.ApplyResources(this.lbUsername, "lbUsername");
            this.lbUsername.ForeColor = Color.Black;
            this.lbUsername.Name      = "lbUsername";
            componentResourceManager.ApplyResources(this.labAuthen, "labAuthen");
            this.labAuthen.ForeColor = Color.Black;
            this.labAuthen.Name      = "labAuthen";
            componentResourceManager.ApplyResources(this.labPrivacy, "labPrivacy");
            this.labPrivacy.ForeColor = Color.Black;
            this.labPrivacy.Name      = "labPrivacy";
            componentResourceManager.ApplyResources(this.tbSysAuthenPw, "tbSysAuthenPw");
            this.tbSysAuthenPw.ForeColor             = Color.Black;
            this.tbSysAuthenPw.Name                  = "tbSysAuthenPw";
            this.tbSysAuthenPw.UseSystemPasswordChar = true;
            componentResourceManager.ApplyResources(this.lbSysAuthenPw, "lbSysAuthenPw");
            this.lbSysAuthenPw.ForeColor = Color.Black;
            this.lbSysAuthenPw.Name      = "lbSysAuthenPw";
            componentResourceManager.ApplyResources(this.tbSysPrivacyPw, "tbSysPrivacyPw");
            this.tbSysPrivacyPw.ForeColor             = Color.Black;
            this.tbSysPrivacyPw.Name                  = "tbSysPrivacyPw";
            this.tbSysPrivacyPw.UseSystemPasswordChar = true;
            componentResourceManager.ApplyResources(this.lbSysPrivacyPw, "lbSysPrivacyPw");
            this.lbSysPrivacyPw.ForeColor = Color.Black;
            this.lbSysPrivacyPw.Name      = "lbSysPrivacyPw";
            componentResourceManager.ApplyResources(this.tbSysTimeOut, "tbSysTimeOut");
            this.tbSysTimeOut.ForeColor = Color.Black;
            this.tbSysTimeOut.Name      = "tbSysTimeOut";
            this.tbSysTimeOut.KeyPress += new KeyPressEventHandler(this.digit_KeyPress);
            componentResourceManager.ApplyResources(this.lbtimeout, "lbtimeout");
            this.lbtimeout.ForeColor      = Color.Black;
            this.lbtimeout.Name           = "lbtimeout";
            this.butSysparaSave.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.butSysparaSave, "butSysparaSave");
            this.butSysparaSave.Name = "butSysparaSave";
            this.butSysparaSave.UseVisualStyleBackColor = false;
            this.butSysparaSave.Click += new System.EventHandler(this.butSysparaSave_Click);
            base.AutoScaleMode         = AutoScaleMode.None;
            this.BackColor             = Color.WhiteSmoke;
            base.Controls.Add(this.groupBox2);
            base.Controls.Add(this.groupBox25);
            base.Controls.Add(this.butSysparaSave);
            componentResourceManager.ApplyResources(this, "$this");
            base.Name = "SysManSNMP";
            this.groupBox2.ResumeLayout(false);
            this.groupBox2.PerformLayout();
            this.groupBox25.ResumeLayout(false);
            this.groupBox25.PerformLayout();
            base.ResumeLayout(false);
        }
Ejemplo n.º 14
0
            private void InitializeComponent()
            {
                ComponentResourceManager resources = new ComponentResourceManager(typeof(LinkAreaEditor));

                _caption                  = new Label();
                _sampleEdit               = new TextBox();
                _okButton                 = new Button();
                _cancelButton             = new Button();
                _okCancelTableLayoutPanel = new TableLayoutPanel();
                _okCancelTableLayoutPanel.SuspendLayout();
                SuspendLayout();
                _okButton.Click += new EventHandler(okButton_click);
                //
                // caption
                //
                resources.ApplyResources(_caption, "caption");
                _caption.Margin = new Padding(3, 1, 3, 0);
                _caption.Name   = "caption";
                //
                // sampleEdit
                //
                resources.ApplyResources(_sampleEdit, "sampleEdit");
                _sampleEdit.Margin        = new Padding(3, 2, 3, 3);
                _sampleEdit.Name          = "sampleEdit";
                _sampleEdit.HideSelection = false;
                _sampleEdit.ScrollBars    = ScrollBars.Vertical;
                //
                // okButton
                //
                resources.ApplyResources(_okButton, "okButton");
                _okButton.DialogResult = DialogResult.OK;
                _okButton.Margin       = new Padding(0, 0, 2, 0);
                _okButton.Name         = "okButton";
                //
                // cancelButton
                //
                resources.ApplyResources(_cancelButton, "cancelButton");
                _cancelButton.DialogResult = DialogResult.Cancel;
                _cancelButton.Margin       = new Padding(3, 0, 0, 0);
                _cancelButton.Name         = "cancelButton";
                //
                // okCancelTableLayoutPanel
                //
                resources.ApplyResources(_okCancelTableLayoutPanel, "okCancelTableLayoutPanel");
                _okCancelTableLayoutPanel.ColumnCount = 2;
                _okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
                _okCancelTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
                _okCancelTableLayoutPanel.Controls.Add(_okButton, 0, 0);
                _okCancelTableLayoutPanel.Controls.Add(_cancelButton, 1, 0);
                _okCancelTableLayoutPanel.Margin   = new Padding(3, 1, 3, 3);
                _okCancelTableLayoutPanel.Name     = "okCancelTableLayoutPanel";
                _okCancelTableLayoutPanel.RowCount = 1;
                _okCancelTableLayoutPanel.RowStyles.Add(new RowStyle());
                _okCancelTableLayoutPanel.RowStyles.Add(new RowStyle());
                //
                // LinkAreaEditor
                //
                resources.ApplyResources(this, "$this");
                AutoScaleMode = AutoScaleMode.Font;
                CancelButton  = _cancelButton;
                Controls.Add(_okCancelTableLayoutPanel);
                Controls.Add(_sampleEdit);
                Controls.Add(_caption);
                HelpButton         = true;
                MaximizeBox        = false;
                MinimizeBox        = false;
                Name               = "LinkAreaEditor";
                ShowIcon           = false;
                ShowInTaskbar      = false;
                HelpButtonClicked += new CancelEventHandler(LinkAreaEditor_HelpButtonClicked);
                _okCancelTableLayoutPanel.ResumeLayout(false);
                _okCancelTableLayoutPanel.PerformLayout();
                ResumeLayout(false);
                PerformLayout();
            }
Ejemplo n.º 15
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Billing));

            this.panel1 = new Panel();
            this.flowLayoutPanelBillingPage = new FlowLayoutPanel();
            this.butBillSetting             = new Button();
            this.butBillGenerate            = new Button();
            this.butBillRptMng    = new Button();
            this.panel2           = new Panel();
            this.billingRptPara1  = new BillingRptPara();
            this.billingSettings1 = new BillingSettings();
            this.billingRptMng1   = new BillingRptMng();
            this.billingRptShow1  = new BillingRptShow();
            this.panel1.SuspendLayout();
            this.flowLayoutPanelBillingPage.SuspendLayout();
            this.panel2.SuspendLayout();
            base.SuspendLayout();
            this.panel1.BackColor = Color.Gainsboro;
            this.panel1.Controls.Add(this.flowLayoutPanelBillingPage);
            componentResourceManager.ApplyResources(this.panel1, "panel1");
            this.panel1.Name = "panel1";
            this.flowLayoutPanelBillingPage.BackColor = Color.Gainsboro;
            this.flowLayoutPanelBillingPage.Controls.Add(this.butBillSetting);
            this.flowLayoutPanelBillingPage.Controls.Add(this.butBillGenerate);
            this.flowLayoutPanelBillingPage.Controls.Add(this.butBillRptMng);
            componentResourceManager.ApplyResources(this.flowLayoutPanelBillingPage, "flowLayoutPanelBillingPage");
            this.flowLayoutPanelBillingPage.Name = "flowLayoutPanelBillingPage";
            componentResourceManager.ApplyResources(this.butBillSetting, "butBillSetting");
            this.butBillSetting.MinimumSize             = new Size(150, 27);
            this.butBillSetting.Name                    = "butBillSetting";
            this.butBillSetting.Tag                     = "BillSetting";
            this.butBillSetting.UseVisualStyleBackColor = true;
            this.butBillSetting.Click                  += new System.EventHandler(this.comm_butClick);
            componentResourceManager.ApplyResources(this.butBillGenerate, "butBillGenerate");
            this.butBillGenerate.MinimumSize             = new Size(150, 27);
            this.butBillGenerate.Name                    = "butBillGenerate";
            this.butBillGenerate.Tag                     = "BillRpt";
            this.butBillGenerate.UseVisualStyleBackColor = true;
            this.butBillGenerate.Click                  += new System.EventHandler(this.comm_butClick);
            componentResourceManager.ApplyResources(this.butBillRptMng, "butBillRptMng");
            this.butBillRptMng.MinimumSize             = new Size(150, 27);
            this.butBillRptMng.Name                    = "butBillRptMng";
            this.butBillRptMng.Tag                     = "BillMng";
            this.butBillRptMng.UseVisualStyleBackColor = true;
            this.butBillRptMng.Click                  += new System.EventHandler(this.comm_butClick);
            this.panel2.Controls.Add(this.billingRptPara1);
            this.panel2.Controls.Add(this.billingSettings1);
            this.panel2.Controls.Add(this.billingRptMng1);
            this.panel2.Controls.Add(this.billingRptShow1);
            componentResourceManager.ApplyResources(this.panel2, "panel2");
            this.panel2.Name = "panel2";
            this.billingRptPara1.BackColor = Color.WhiteSmoke;
            componentResourceManager.ApplyResources(this.billingRptPara1, "billingRptPara1");
            this.billingRptPara1.Name       = "billingRptPara1";
            this.billingSettings1.BackColor = Color.WhiteSmoke;
            componentResourceManager.ApplyResources(this.billingSettings1, "billingSettings1");
            this.billingSettings1.Name    = "billingSettings1";
            this.billingRptMng1.BackColor = Color.WhiteSmoke;
            componentResourceManager.ApplyResources(this.billingRptMng1, "billingRptMng1");
            this.billingRptMng1.Name       = "billingRptMng1";
            this.billingRptShow1.BackColor = Color.WhiteSmoke;
            componentResourceManager.ApplyResources(this.billingRptShow1, "billingRptShow1");
            this.billingRptShow1.Name = "billingRptShow1";
            base.AutoScaleMode        = AutoScaleMode.None;
            this.BackColor            = Color.WhiteSmoke;
            base.Controls.Add(this.panel2);
            base.Controls.Add(this.panel1);
            componentResourceManager.ApplyResources(this, "$this");
            base.Name = "Billing";
            this.panel1.ResumeLayout(false);
            this.flowLayoutPanelBillingPage.ResumeLayout(false);
            this.flowLayoutPanelBillingPage.PerformLayout();
            this.panel2.ResumeLayout(false);
            base.ResumeLayout(false);
        }
Ejemplo n.º 16
0
 private void applyResources(ComponentResourceManager resources, Control.ControlCollection ctls)
 {
     foreach (Control ctl in ctls)
     {
         resources.ApplyResources(ctl, ctl.Name);
         applyResources(resources, ctl.Controls);
     }
 }
Ejemplo n.º 17
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            ComponentResourceManager resources = new ComponentResourceManager(typeof(SizeControl));

            this.grpSize = new GroupBox();
            this.scSizes = new SymbolSizeChooser();
            this.btnEdit = new Button();
            this.grpSize.SuspendLayout();
            ((ISupportInitialize)(this.scSizes)).BeginInit();
            this.SuspendLayout();
            //
            // grpSize
            //
            this.grpSize.AccessibleDescription = null;
            this.grpSize.AccessibleName        = null;
            resources.ApplyResources(this.grpSize, "grpSize");
            this.grpSize.BackgroundImage = null;
            this.grpSize.Controls.Add(this.scSizes);
            this.grpSize.Controls.Add(this.btnEdit);
            this.grpSize.Font    = null;
            this.grpSize.Name    = "grpSize";
            this.grpSize.TabStop = false;
            //
            // scSizes
            //
            this.scSizes.AccessibleDescription = null;
            this.scSizes.AccessibleName        = null;
            resources.ApplyResources(this.scSizes, "scSizes");
            this.scSizes.BackgroundImage   = null;
            this.scSizes.BoxBackColor      = SystemColors.Control;
            this.scSizes.BoxSelectionColor = SystemColors.Highlight;
            this.scSizes.BoxSize           = new Size(36, 36);
            this.scSizes.Font           = null;
            this.scSizes.Name           = "scSizes";
            this.scSizes.NumBoxes       = 4;
            this.scSizes.Orientation    = Orientation.Horizontal;
            this.scSizes.RoundingRadius = 6;
            //
            // btnEdit
            //
            this.btnEdit.AccessibleDescription = null;
            this.btnEdit.AccessibleName        = null;
            resources.ApplyResources(this.btnEdit, "btnEdit");
            this.btnEdit.BackgroundImage         = null;
            this.btnEdit.Font                    = null;
            this.btnEdit.Name                    = "btnEdit";
            this.btnEdit.UseVisualStyleBackColor = true;
            this.btnEdit.Click                  += new EventHandler(this.btnEdit_Click);
            //
            // SizeControl
            //
            this.AccessibleDescription = null;
            this.AccessibleName        = null;
            resources.ApplyResources(this, "$this");

            this.BackgroundImage = null;
            this.Controls.Add(this.grpSize);
            this.Font = null;
            this.Name = "SizeControl";
            this.grpSize.ResumeLayout(false);
            ((ISupportInitialize)(this.scSizes)).EndInit();
            this.ResumeLayout(false);
        }
Ejemplo n.º 18
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(UserManUserSetDevDlg));
            DataGridViewCellStyle    dataGridViewCellStyle    = new DataGridViewCellStyle();
            DataGridViewCellStyle    dataGridViewCellStyle2   = new DataGridViewCellStyle();
            DataGridViewCellStyle    dataGridViewCellStyle3   = new DataGridViewCellStyle();
            DataGridViewCellStyle    dataGridViewCellStyle4   = new DataGridViewCellStyle();
            DataGridViewCellStyle    dataGridViewCellStyle5   = new DataGridViewCellStyle();
            DataGridViewCellStyle    dataGridViewCellStyle6   = new DataGridViewCellStyle();
            DataGridViewCellStyle    dataGridViewCellStyle7   = new DataGridViewCellStyle();
            DataGridViewCellStyle    dataGridViewCellStyle8   = new DataGridViewCellStyle();

            this.butSaveDev     = new Button();
            this.dgvAllDevices  = new DataGridView();
            this.dgvcbSelectDev = new DataGridViewCheckBoxColumn();
            this.dgvtbDeviceNm  = new DataGridViewTextBoxColumn();
            this.dgvtbcMac      = new DataGridViewTextBoxColumn();
            this.dgvtbcIp       = new DataGridViewTextBoxColumn();
            this.dgvtbcModel    = new DataGridViewTextBoxColumn();
            this.dgvtbcRackNm   = new DataGridViewTextBoxColumn();
            this.deviceId       = new DataGridViewTextBoxColumn();
            this.butCancelDev   = new Button();
            this.cbSelAllDev    = new CheckBox();
            this.accTC          = new TabControl();
            this.tpDevice       = new TabPage();
            this.tpGroup        = new TabPage();
            this.cbSelAllGp     = new CheckBox();
            this.btnCancelGp    = new Button();
            this.btnSaveGp      = new Button();
            this.dgvAllGroups   = new DataGridView();
            this.dgvcbSelectGp  = new DataGridViewCheckBoxColumn();
            this.groupNm        = new DataGridViewTextBoxColumn();
            this.groupType      = new DataGridViewTextBoxColumn();
            this.groupId        = new DataGridViewTextBoxColumn();
            ((ISupportInitialize)this.dgvAllDevices).BeginInit();
            this.accTC.SuspendLayout();
            this.tpDevice.SuspendLayout();
            this.tpGroup.SuspendLayout();
            ((ISupportInitialize)this.dgvAllGroups).BeginInit();
            base.SuspendLayout();
            this.butSaveDev.DialogResult = DialogResult.OK;
            componentResourceManager.ApplyResources(this.butSaveDev, "butSaveDev");
            this.butSaveDev.Name = "butSaveDev";
            this.butSaveDev.UseVisualStyleBackColor = true;
            this.butSaveDev.Click += new System.EventHandler(this.butSave_Click);
            this.dgvAllDevices.AllowUserToAddRows       = false;
            this.dgvAllDevices.AllowUserToDeleteRows    = false;
            this.dgvAllDevices.AllowUserToResizeColumns = false;
            this.dgvAllDevices.AllowUserToResizeRows    = false;
            this.dgvAllDevices.BackgroundColor          = Color.WhiteSmoke;
            this.dgvAllDevices.CellBorderStyle          = DataGridViewCellBorderStyle.Raised;
            dataGridViewCellStyle.Alignment             = DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle.BackColor             = SystemColors.Control;
            dataGridViewCellStyle.Font                       = new Font("Microsoft Sans Serif", 9f);
            dataGridViewCellStyle.ForeColor                  = Color.Black;
            dataGridViewCellStyle.SelectionBackColor         = SystemColors.Highlight;
            dataGridViewCellStyle.SelectionForeColor         = SystemColors.HighlightText;
            dataGridViewCellStyle.WrapMode                   = DataGridViewTriState.True;
            this.dgvAllDevices.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle;
            this.dgvAllDevices.ColumnHeadersHeightSizeMode   = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
            this.dgvAllDevices.Columns.AddRange(new DataGridViewColumn[]
            {
                this.dgvcbSelectDev,
                this.dgvtbDeviceNm,
                this.dgvtbcMac,
                this.dgvtbcIp,
                this.dgvtbcModel,
                this.dgvtbcRackNm,
                this.deviceId
            });
            dataGridViewCellStyle2.Alignment          = DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle2.BackColor          = Color.White;
            dataGridViewCellStyle2.Font               = new Font("Microsoft Sans Serif", 9f);
            dataGridViewCellStyle2.ForeColor          = Color.Black;
            dataGridViewCellStyle2.SelectionBackColor = Color.White;
            dataGridViewCellStyle2.SelectionForeColor = Color.Black;
            dataGridViewCellStyle2.WrapMode           = DataGridViewTriState.False;
            this.dgvAllDevices.DefaultCellStyle       = dataGridViewCellStyle2;
            this.dgvAllDevices.GridColor              = Color.White;
            componentResourceManager.ApplyResources(this.dgvAllDevices, "dgvAllDevices");
            this.dgvAllDevices.MultiSelect                   = false;
            this.dgvAllDevices.Name                          = "dgvAllDevices";
            dataGridViewCellStyle3.Alignment                 = DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle3.BackColor                 = Color.White;
            dataGridViewCellStyle3.Font                      = new Font("Microsoft Sans Serif", 9f);
            dataGridViewCellStyle3.ForeColor                 = Color.Black;
            dataGridViewCellStyle3.SelectionBackColor        = Color.White;
            dataGridViewCellStyle3.SelectionForeColor        = Color.Black;
            dataGridViewCellStyle3.WrapMode                  = DataGridViewTriState.True;
            this.dgvAllDevices.RowHeadersDefaultCellStyle    = dataGridViewCellStyle3;
            this.dgvAllDevices.RowHeadersVisible             = false;
            this.dgvAllDevices.RowHeadersWidthSizeMode       = DataGridViewRowHeadersWidthSizeMode.DisableResizing;
            dataGridViewCellStyle4.BackColor                 = Color.White;
            dataGridViewCellStyle4.ForeColor                 = Color.Black;
            dataGridViewCellStyle4.SelectionBackColor        = Color.Blue;
            dataGridViewCellStyle4.SelectionForeColor        = Color.White;
            this.dgvAllDevices.RowsDefaultCellStyle          = dataGridViewCellStyle4;
            this.dgvAllDevices.RowTemplate.Height            = 23;
            this.dgvAllDevices.SelectionMode                 = DataGridViewSelectionMode.FullRowSelect;
            this.dgvAllDevices.CellValueChanged             += new DataGridViewCellEventHandler(this.dgvAllDevices_CellValueChanged);
            this.dgvAllDevices.CurrentCellDirtyStateChanged += new System.EventHandler(this.dgvAllDevices_CurrentCellDirtyStateChanged);
            componentResourceManager.ApplyResources(this.dgvcbSelectDev, "dgvcbSelectDev");
            this.dgvcbSelectDev.Name = "dgvcbSelectDev";
            componentResourceManager.ApplyResources(this.dgvtbDeviceNm, "dgvtbDeviceNm");
            this.dgvtbDeviceNm.Name     = "dgvtbDeviceNm";
            this.dgvtbDeviceNm.ReadOnly = true;
            componentResourceManager.ApplyResources(this.dgvtbcMac, "dgvtbcMac");
            this.dgvtbcMac.Name     = "dgvtbcMac";
            this.dgvtbcMac.ReadOnly = true;
            componentResourceManager.ApplyResources(this.dgvtbcIp, "dgvtbcIp");
            this.dgvtbcIp.Name     = "dgvtbcIp";
            this.dgvtbcIp.ReadOnly = true;
            componentResourceManager.ApplyResources(this.dgvtbcModel, "dgvtbcModel");
            this.dgvtbcModel.Name     = "dgvtbcModel";
            this.dgvtbcModel.ReadOnly = true;
            componentResourceManager.ApplyResources(this.dgvtbcRackNm, "dgvtbcRackNm");
            this.dgvtbcRackNm.Name     = "dgvtbcRackNm";
            this.dgvtbcRackNm.ReadOnly = true;
            componentResourceManager.ApplyResources(this.deviceId, "deviceId");
            this.deviceId.Name             = "deviceId";
            this.deviceId.ReadOnly         = true;
            this.butCancelDev.DialogResult = DialogResult.Cancel;
            componentResourceManager.ApplyResources(this.butCancelDev, "butCancelDev");
            this.butCancelDev.Name = "butCancelDev";
            this.butCancelDev.UseVisualStyleBackColor = true;
            this.cbSelAllDev.BackColor = Color.Transparent;
            componentResourceManager.ApplyResources(this.cbSelAllDev, "cbSelAllDev");
            this.cbSelAllDev.ForeColor = Color.Black;
            this.cbSelAllDev.Name      = "cbSelAllDev";
            this.cbSelAllDev.UseVisualStyleBackColor = false;
            this.cbSelAllDev.CheckedChanged         += new System.EventHandler(this.cbSelAllDev_CheckedChanged);
            this.accTC.Controls.Add(this.tpDevice);
            this.accTC.Controls.Add(this.tpGroup);
            componentResourceManager.ApplyResources(this.accTC, "accTC");
            this.accTC.Name          = "accTC";
            this.accTC.SelectedIndex = 0;
            this.tpDevice.BackColor  = SystemColors.Control;
            this.tpDevice.Controls.Add(this.cbSelAllDev);
            this.tpDevice.Controls.Add(this.butCancelDev);
            this.tpDevice.Controls.Add(this.butSaveDev);
            this.tpDevice.Controls.Add(this.dgvAllDevices);
            componentResourceManager.ApplyResources(this.tpDevice, "tpDevice");
            this.tpDevice.Name     = "tpDevice";
            this.tpGroup.BackColor = SystemColors.Control;
            this.tpGroup.Controls.Add(this.cbSelAllGp);
            this.tpGroup.Controls.Add(this.btnCancelGp);
            this.tpGroup.Controls.Add(this.btnSaveGp);
            this.tpGroup.Controls.Add(this.dgvAllGroups);
            componentResourceManager.ApplyResources(this.tpGroup, "tpGroup");
            this.tpGroup.Name         = "tpGroup";
            this.cbSelAllGp.BackColor = Color.Transparent;
            componentResourceManager.ApplyResources(this.cbSelAllGp, "cbSelAllGp");
            this.cbSelAllGp.ForeColor = Color.Black;
            this.cbSelAllGp.Name      = "cbSelAllGp";
            this.cbSelAllGp.UseVisualStyleBackColor = false;
            this.cbSelAllGp.CheckedChanged         += new System.EventHandler(this.cbSelAllGp_CheckedChanged);
            this.btnCancelGp.DialogResult           = DialogResult.Cancel;
            componentResourceManager.ApplyResources(this.btnCancelGp, "btnCancelGp");
            this.btnCancelGp.Name = "btnCancelGp";
            this.btnCancelGp.UseVisualStyleBackColor = true;
            this.btnSaveGp.DialogResult = DialogResult.OK;
            componentResourceManager.ApplyResources(this.btnSaveGp, "btnSaveGp");
            this.btnSaveGp.Name = "btnSaveGp";
            this.btnSaveGp.UseVisualStyleBackColor = true;
            this.btnSaveGp.Click += new System.EventHandler(this.butSave_Click);
            this.dgvAllGroups.AllowUserToAddRows       = false;
            this.dgvAllGroups.AllowUserToDeleteRows    = false;
            this.dgvAllGroups.AllowUserToResizeColumns = false;
            this.dgvAllGroups.AllowUserToResizeRows    = false;
            this.dgvAllGroups.BackgroundColor          = Color.WhiteSmoke;
            this.dgvAllGroups.CellBorderStyle          = DataGridViewCellBorderStyle.Raised;
            dataGridViewCellStyle5.Alignment           = DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle5.BackColor           = SystemColors.Control;
            dataGridViewCellStyle5.Font                     = new Font("Microsoft Sans Serif", 9f);
            dataGridViewCellStyle5.ForeColor                = Color.Black;
            dataGridViewCellStyle5.SelectionBackColor       = SystemColors.Highlight;
            dataGridViewCellStyle5.SelectionForeColor       = SystemColors.HighlightText;
            dataGridViewCellStyle5.WrapMode                 = DataGridViewTriState.True;
            this.dgvAllGroups.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
            this.dgvAllGroups.ColumnHeadersHeightSizeMode   = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
            this.dgvAllGroups.Columns.AddRange(new DataGridViewColumn[]
            {
                this.dgvcbSelectGp,
                this.groupNm,
                this.groupType,
                this.groupId
            });
            dataGridViewCellStyle6.Alignment          = DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle6.BackColor          = Color.White;
            dataGridViewCellStyle6.Font               = new Font("Microsoft Sans Serif", 9f);
            dataGridViewCellStyle6.ForeColor          = Color.Black;
            dataGridViewCellStyle6.SelectionBackColor = Color.White;
            dataGridViewCellStyle6.SelectionForeColor = Color.Black;
            dataGridViewCellStyle6.WrapMode           = DataGridViewTriState.False;
            this.dgvAllGroups.DefaultCellStyle        = dataGridViewCellStyle6;
            this.dgvAllGroups.GridColor               = Color.White;
            componentResourceManager.ApplyResources(this.dgvAllGroups, "dgvAllGroups");
            this.dgvAllGroups.MultiSelect                   = false;
            this.dgvAllGroups.Name                          = "dgvAllGroups";
            dataGridViewCellStyle7.Alignment                = DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle7.BackColor                = Color.White;
            dataGridViewCellStyle7.Font                     = new Font("Microsoft Sans Serif", 9f);
            dataGridViewCellStyle7.ForeColor                = Color.Black;
            dataGridViewCellStyle7.SelectionBackColor       = Color.White;
            dataGridViewCellStyle7.SelectionForeColor       = Color.Black;
            dataGridViewCellStyle7.WrapMode                 = DataGridViewTriState.True;
            this.dgvAllGroups.RowHeadersDefaultCellStyle    = dataGridViewCellStyle7;
            this.dgvAllGroups.RowHeadersVisible             = false;
            this.dgvAllGroups.RowHeadersWidthSizeMode       = DataGridViewRowHeadersWidthSizeMode.DisableResizing;
            dataGridViewCellStyle8.BackColor                = Color.White;
            dataGridViewCellStyle8.ForeColor                = Color.Black;
            dataGridViewCellStyle8.SelectionBackColor       = Color.Blue;
            dataGridViewCellStyle8.SelectionForeColor       = Color.White;
            this.dgvAllGroups.RowsDefaultCellStyle          = dataGridViewCellStyle8;
            this.dgvAllGroups.RowTemplate.Height            = 23;
            this.dgvAllGroups.SelectionMode                 = DataGridViewSelectionMode.FullRowSelect;
            this.dgvAllGroups.CellValueChanged             += new DataGridViewCellEventHandler(this.dgvAllGroups_CellValueChanged);
            this.dgvAllGroups.CurrentCellDirtyStateChanged += new System.EventHandler(this.dgvAllGroups_CurrentCellDirtyStateChanged);
            componentResourceManager.ApplyResources(this.dgvcbSelectGp, "dgvcbSelectGp");
            this.dgvcbSelectGp.Name = "dgvcbSelectGp";
            componentResourceManager.ApplyResources(this.groupNm, "groupNm");
            this.groupNm.Name           = "groupNm";
            this.groupNm.ReadOnly       = true;
            this.groupType.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            componentResourceManager.ApplyResources(this.groupType, "groupType");
            this.groupType.Name     = "groupType";
            this.groupType.ReadOnly = true;
            componentResourceManager.ApplyResources(this.groupId, "groupId");
            this.groupId.Name  = "groupId";
            base.AutoScaleMode = AutoScaleMode.None;
            base.CancelButton  = this.butCancelDev;
            componentResourceManager.ApplyResources(this, "$this");
            base.Controls.Add(this.accTC);
            base.FormBorderStyle = FormBorderStyle.FixedToolWindow;
            base.MaximizeBox     = false;
            base.MinimizeBox     = false;
            base.Name            = "UserManUserSetDevDlg";
            base.ShowInTaskbar   = false;
            ((ISupportInitialize)this.dgvAllDevices).EndInit();
            this.accTC.ResumeLayout(false);
            this.tpDevice.ResumeLayout(false);
            this.tpGroup.ResumeLayout(false);
            ((ISupportInitialize)this.dgvAllGroups).EndInit();
            base.ResumeLayout(false);
        }
Ejemplo n.º 19
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(DevManPage));

            this.flowLayoutPanelDevManPage = new FlowLayoutPanel();
            this.butZoneNew     = new Button();
            this.butRackNew     = new Button();
            this.butDevSetup    = new Button();
            this.butDataGroup   = new Button();
            this.butOtherDevice = new Button();
            this.panel1         = new Panel();
            this.panel2         = new Panel();
            this.otherDevices1  = new OtherDevices.OtherDevices();
            this.manZone1       = new ManZone();
            this.manRack1       = new ManRack();
            this.devManDevice1  = new DevManDevice.DevManDevice();
            this.dataGroup1     = new DataGroup.DataGroup();
            this.flowLayoutPanelDevManPage.SuspendLayout();
            this.panel1.SuspendLayout();
            this.panel2.SuspendLayout();
            base.SuspendLayout();
            this.flowLayoutPanelDevManPage.BackColor = Color.FromArgb(18, 160, 143);
            this.flowLayoutPanelDevManPage.Controls.Add(this.butZoneNew);
            this.flowLayoutPanelDevManPage.Controls.Add(this.butRackNew);
            this.flowLayoutPanelDevManPage.Controls.Add(this.butDevSetup);
            this.flowLayoutPanelDevManPage.Controls.Add(this.butDataGroup);
            this.flowLayoutPanelDevManPage.Controls.Add(this.butOtherDevice);
            componentResourceManager.ApplyResources(this.flowLayoutPanelDevManPage, "flowLayoutPanelDevManPage");
            this.flowLayoutPanelDevManPage.MinimumSize = new Size(889, 27);
            this.flowLayoutPanelDevManPage.Name        = "flowLayoutPanelDevManPage";
            componentResourceManager.ApplyResources(this.butZoneNew, "butZoneNew");
            this.butZoneNew.BackColor               = Color.FromArgb(18, 160, 143);
            this.butZoneNew.MinimumSize             = new Size(160, 27);
            this.butZoneNew.Name                    = "butZoneNew";
            this.butZoneNew.Tag                     = "Tag_ZoneDefine";
            this.butZoneNew.UseVisualStyleBackColor = true;
            this.butZoneNew.Click                  += new System.EventHandler(this.comm_butClick);
            componentResourceManager.ApplyResources(this.butRackNew, "butRackNew");
            this.butRackNew.BackColor               = Color.FromArgb(18, 160, 143);
            this.butRackNew.MinimumSize             = new Size(160, 27);
            this.butRackNew.Name                    = "butRackNew";
            this.butRackNew.Tag                     = "Tag_TestRack";
            this.butRackNew.UseVisualStyleBackColor = true;
            this.butRackNew.Click                  += new System.EventHandler(this.comm_butClick);
            componentResourceManager.ApplyResources(this.butDevSetup, "butDevSetup");
            this.butDevSetup.MinimumSize             = new Size(160, 27);
            this.butDevSetup.Name                    = "butDevSetup";
            this.butDevSetup.Tag                     = "PDU Setup";
            this.butDevSetup.UseVisualStyleBackColor = true;
            this.butDevSetup.Click                  += new System.EventHandler(this.comm_butClick);
            componentResourceManager.ApplyResources(this.butDataGroup, "butDataGroup");
            this.butDataGroup.MinimumSize             = new Size(160, 27);
            this.butDataGroup.Name                    = "butDataGroup";
            this.butDataGroup.Tag                     = "Tag_datagroup";
            this.butDataGroup.UseVisualStyleBackColor = true;
            this.butDataGroup.Click                  += new System.EventHandler(this.comm_butClick);
            componentResourceManager.ApplyResources(this.butOtherDevice, "butOtherDevice");
            this.butOtherDevice.MinimumSize             = new Size(160, 27);
            this.butOtherDevice.Name                    = "butOtherDevice";
            this.butOtherDevice.Tag                     = "Tag_OtherDevice";
            this.butOtherDevice.UseVisualStyleBackColor = true;
            this.butOtherDevice.Click                  += new System.EventHandler(this.comm_butClick);
            this.panel1.BackColor = Color.FromArgb(18, 160, 143);
            this.panel1.Controls.Add(this.flowLayoutPanelDevManPage);
            componentResourceManager.ApplyResources(this.panel1, "panel1");
            this.panel1.Name = "panel1";
            this.panel2.Controls.Add(this.otherDevices1);
            this.panel2.Controls.Add(this.manZone1);
            this.panel2.Controls.Add(this.manRack1);
            this.panel2.Controls.Add(this.devManDevice1);
            this.panel2.Controls.Add(this.dataGroup1);
            componentResourceManager.ApplyResources(this.panel2, "panel2");
            this.panel2.Name             = "panel2";
            this.otherDevices1.BackColor = Color.WhiteSmoke;
            componentResourceManager.ApplyResources(this.otherDevices1, "otherDevices1");
            this.otherDevices1.Name = "otherDevices1";
            this.manZone1.BackColor = Color.WhiteSmoke;
            componentResourceManager.ApplyResources(this.manZone1, "manZone1");
            this.manZone1.Name      = "manZone1";
            this.manRack1.BackColor = Color.WhiteSmoke;
            componentResourceManager.ApplyResources(this.manRack1, "manRack1");
            this.manRack1.Name           = "manRack1";
            this.devManDevice1.BackColor = Color.WhiteSmoke;
            componentResourceManager.ApplyResources(this.devManDevice1, "devManDevice1");
            this.devManDevice1.Name   = "devManDevice1";
            this.dataGroup1.BackColor = Color.WhiteSmoke;
            componentResourceManager.ApplyResources(this.dataGroup1, "dataGroup1");
            this.dataGroup1.Name = "dataGroup1";
            base.AutoScaleMode   = AutoScaleMode.None;
            this.BackColor       = Color.WhiteSmoke;
            base.Controls.Add(this.panel2);
            base.Controls.Add(this.panel1);
            componentResourceManager.ApplyResources(this, "$this");
            base.Name            = "DevManPage";
            base.VisibleChanged += new System.EventHandler(this.DevManPage_VisibleChanged);
            this.flowLayoutPanelDevManPage.ResumeLayout(false);
            this.flowLayoutPanelDevManPage.PerformLayout();
            this.panel1.ResumeLayout(false);
            this.panel2.ResumeLayout(false);
            base.ResumeLayout(false);
        }
Ejemplo n.º 20
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            ComponentResourceManager resources = new ComponentResourceManager(typeof(RenameFieldDialog));

            this.lblField  = new Label();
            this.cmbField  = new ComboBox();
            this.lblName   = new Label();
            this.txtName   = new TextBox();
            this.btnCancel = new Button();
            this.btnOK     = new Button();
            this.SuspendLayout();
            //
            // lblField
            //
            this.lblField.AccessibleDescription = null;
            this.lblField.AccessibleName        = null;
            resources.ApplyResources(this.lblField, "lblField");
            this.lblField.Font = null;
            this.lblField.Name = "lblField";
            //
            // cmbField
            //
            this.cmbField.AccessibleDescription = null;
            this.cmbField.AccessibleName        = null;
            resources.ApplyResources(this.cmbField, "cmbField");
            this.cmbField.BackgroundImage   = null;
            this.cmbField.DropDownStyle     = ComboBoxStyle.DropDownList;
            this.cmbField.Font              = null;
            this.cmbField.FormattingEnabled = true;
            this.cmbField.Name              = "cmbField";
            //
            // lblName
            //
            this.lblName.AccessibleDescription = null;
            this.lblName.AccessibleName        = null;
            resources.ApplyResources(this.lblName, "lblName");
            this.lblName.Font = null;
            this.lblName.Name = "lblName";
            //
            // txtName
            //
            this.txtName.AccessibleDescription = null;
            this.txtName.AccessibleName        = null;
            resources.ApplyResources(this.txtName, "txtName");
            this.txtName.BackgroundImage = null;
            this.txtName.Font            = null;
            this.txtName.Name            = "txtName";
            //
            // btnCancel
            //
            this.btnCancel.AccessibleDescription = null;
            this.btnCancel.AccessibleName        = null;
            resources.ApplyResources(this.btnCancel, "btnCancel");
            this.btnCancel.BackgroundImage         = null;
            this.btnCancel.Font                    = null;
            this.btnCancel.Name                    = "btnCancel";
            this.btnCancel.UseVisualStyleBackColor = true;
            this.btnCancel.Click                  += new EventHandler(this.BtnCancelClick);
            //
            // btnOK
            //
            this.btnOK.AccessibleDescription = null;
            this.btnOK.AccessibleName        = null;
            resources.ApplyResources(this.btnOK, "btnOK");
            this.btnOK.BackgroundImage         = null;
            this.btnOK.Font                    = null;
            this.btnOK.Name                    = "btnOK";
            this.btnOK.UseVisualStyleBackColor = true;
            this.btnOK.Click                  += new EventHandler(this.BtnOkClick);
            //
            // ReNameField
            //
            this.AccessibleDescription = null;
            this.AccessibleName        = null;
            resources.ApplyResources(this, "$this");
            this.AutoScaleMode   = ((ContainerControl)this).AutoScaleMode;
            this.BackgroundImage = null;
            this.Controls.Add(this.btnOK);
            this.Controls.Add(this.btnCancel);
            this.Controls.Add(this.txtName);
            this.Controls.Add(this.lblName);
            this.Controls.Add(this.cmbField);
            this.Controls.Add(this.lblField);
            this.Font     = null;
            this.Icon     = null;
            this.Name     = "RenameFieldDialog";
            this.ShowIcon = false;
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Ejemplo n.º 21
0
            private void InitializeComponent()
            {
                ComponentResourceManager resources = new ComponentResourceManager(typeof(ShortcutKeysEditor));

                tlpOuter     = new TableLayoutPanel();
                lblModifiers = new Label();
                chkCtrl      = new CheckBox();
                chkAlt       = new CheckBox();
                chkShift     = new CheckBox();
                tlpInner     = new TableLayoutPanel();
                lblKey       = new Label();
                cmbKey       = new ComboBox();
                btnReset     = new Button();
                tlpOuter.SuspendLayout();
                tlpInner.SuspendLayout();
                SuspendLayout();

                //
                // tlpOuter
                //
                resources.ApplyResources(tlpOuter, "tlpOuter");
                tlpOuter.ColumnCount = 3;
                tlpOuter.ColumnStyles.Add(new ColumnStyle());
                tlpOuter.ColumnStyles.Add(new ColumnStyle());
                tlpOuter.ColumnStyles.Add(new ColumnStyle());
                tlpOuter.Controls.Add(lblModifiers, 0, 0);
                tlpOuter.Controls.Add(chkCtrl, 0, 1);
                tlpOuter.Controls.Add(chkShift, 1, 1);
                tlpOuter.Controls.Add(chkAlt, 2, 1);
                tlpOuter.Name     = "tlpOuter";
                tlpOuter.RowCount = 2;
                tlpOuter.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F));
                tlpOuter.RowStyles.Add(new RowStyle(SizeType.Absolute, 24F));

                //
                // lblModifiers
                //
                resources.ApplyResources(lblModifiers, "lblModifiers");
                tlpOuter.SetColumnSpan(lblModifiers, 3);
                lblModifiers.Name = "lblModifiers";

                //
                // chkCtrl
                //
                resources.ApplyResources(chkCtrl, "chkCtrl");
                chkCtrl.Name = "chkCtrl";
                // this margin setting makes this control left-align with cmbKey and indented from lblModifiers/lblKey
                chkCtrl.Margin = new Padding(12, 3, 3, 3);

                chkCtrl.CheckedChanged += chkModifier_CheckedChanged;

                //
                // chkAlt
                //
                resources.ApplyResources(chkAlt, "chkAlt");
                chkAlt.Name = "chkAlt";

                chkAlt.CheckedChanged += chkModifier_CheckedChanged;

                //
                // chkShift
                //
                resources.ApplyResources(chkShift, "chkShift");
                chkShift.Name = "chkShift";

                chkShift.CheckedChanged += chkModifier_CheckedChanged;

                //
                // tlpInner
                //
                resources.ApplyResources(tlpInner, "tlpInner");
                tlpInner.ColumnCount = 2;
                tlpInner.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize));
                tlpInner.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize));
                tlpInner.Controls.Add(lblKey, 0, 0);
                tlpInner.Controls.Add(cmbKey, 0, 1);
                tlpInner.Controls.Add(btnReset, 1, 1);
                tlpInner.Name     = "tlpInner";
                tlpInner.RowCount = 2;
                tlpInner.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F));
                tlpInner.RowStyles.Add(new RowStyle(SizeType.AutoSize));

                //
                // lblKey
                //
                resources.ApplyResources(lblKey, "lblKey");
                tlpInner.SetColumnSpan(lblKey, 2);
                lblKey.Name = "lblKey";

                //
                // cmbKey
                //
                resources.ApplyResources(cmbKey, "cmbKey");
                cmbKey.DropDownStyle = ComboBoxStyle.DropDownList;
                cmbKey.Name          = "cmbKey";
                // this margin setting makes this control align with chkCtrl and indented from lblModifiers/lblKey
                // the top margin makes the combobox and btnReset align properly
                cmbKey.Margin  = new Padding(12, 4, 3, 3);
                cmbKey.Padding = cmbKey.Margin;

                foreach (Keys keyCode in validKeys)
                {
                    cmbKey.Items.Add(KeysConverter.ConvertToString(keyCode));
                }
                cmbKey.SelectedIndexChanged += cmbKey_SelectedIndexChanged;

                //
                // btnReset
                //
                resources.ApplyResources(btnReset, "btnReset");
                btnReset.Name = "btnReset";

                btnReset.Click += btnReset_Click;

                resources.ApplyResources(this, "$this");
                Controls.AddRange(new Control[] { tlpInner, tlpOuter });
                Name    = "ShortcutKeysUI";
                Padding = new Padding(4);

                tlpOuter.ResumeLayout(false);
                tlpOuter.PerformLayout();
                tlpInner.ResumeLayout(false);
                tlpInner.PerformLayout();
                ResumeLayout(false);
                PerformLayout();
            }
Ejemplo n.º 22
0
        /// <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();
            ComponentResourceManager resources = new ComponentResourceManager(typeof(LayoutListBox));

            this._lbxItems  = new ListBox();
            this._btnPanel  = new Panel();
            this._btnDown   = new Button();
            this._btnUp     = new Button();
            this._btnRemove = new Button();
            this._listPanel = new Panel();
            this.TV_Items   = new CodersLab.Windows.Controls.TreeView();
            this.IL         = new System.Windows.Forms.ImageList(this.components);
            this._btnPanel.SuspendLayout();
            this._listPanel.SuspendLayout();
            this.SuspendLayout();

            // _lbxItems
            resources.ApplyResources(this._lbxItems, "_lbxItems");
            this._lbxItems.DrawMode          = DrawMode.OwnerDrawFixed;
            this._lbxItems.FormattingEnabled = true;
            this._lbxItems.Name                  = "_lbxItems";
            this._lbxItems.SelectionMode         = SelectionMode.MultiExtended;
            this._lbxItems.SelectedIndexChanged += LbxItemsSelectedIndexChanged;

            // _btnPanel
            resources.ApplyResources(this._btnPanel, "_btnPanel");
            this._btnPanel.Controls.Add(this._btnDown);
            this._btnPanel.Controls.Add(this._btnUp);
            this._btnPanel.Controls.Add(this._btnRemove);
            this._btnPanel.Name = "_btnPanel";

            // _btnDown
            resources.ApplyResources(this._btnDown, "_btnDown");
            this._btnDown.Image = Images.down;
            this._btnDown.Name  = "_btnDown";
            this._btnDown.UseVisualStyleBackColor = true;
            this._btnDown.Click += BtnDownClick;

            // _btnUp
            resources.ApplyResources(this._btnUp, "_btnUp");
            this._btnUp.Image = Images.up;
            this._btnUp.Name  = "_btnUp";
            this._btnUp.UseVisualStyleBackColor = true;
            this._btnUp.Click += BtnUpClick;

            // _btnRemove
            resources.ApplyResources(this._btnRemove, "_btnRemove");
            this._btnRemove.Image = Images.mnuLayerClear;
            this._btnRemove.Name  = "_btnRemove";
            this._btnRemove.UseVisualStyleBackColor = true;
            this._btnRemove.Click += BtnRemoveClick;

            // _listPanel
            resources.ApplyResources(this._listPanel, "_listPanel");
            this._listPanel.BackColor = Color.White;
            this._listPanel.Controls.Add(this.TV_Items);
            this._listPanel.Name = "_listPanel";


            //
            // TV_Items
            //
            resources.ApplyResources(this.TV_Items, "TV_Items");
            this.TV_Items.FullRowSelect      = true;
            this.TV_Items.HideSelection      = false;
            this.TV_Items.ImageList          = this.IL;
            this.TV_Items.LabelEdit          = true;
            this.TV_Items.Name               = "TV_Items";
            this.TV_Items.SelectionBackColor = System.Drawing.SystemColors.Highlight;
            this.TV_Items.SelectionMode      = CodersLab.Windows.Controls.TreeViewSelectionMode.MultiSelect;
            this.TV_Items.SelectionsChanged += new System.EventHandler(this.TV_Items_SelectionsChanged);
            this.TV_Items.AfterLabelEdit    += new System.Windows.Forms.NodeLabelEditEventHandler(this.TV_Items_AfterLabelEdit);
            this.TV_Items.AfterSelect       += new System.Windows.Forms.TreeViewEventHandler(this.TV_Items_AfterSelect);
            this.TV_Items.NodeMouseClick    += new System.Windows.Forms.TreeNodeMouseClickEventHandler(this.TV_Items_NodeMouseClick);
            this.TV_Items.KeyUp             += new System.Windows.Forms.KeyEventHandler(this.TV_Items_KeyUp);

            // IL
            //
            this.IL.ImageStream      = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("IL.ImageStream")));
            this.IL.TransparentColor = System.Drawing.Color.Transparent;
            this.IL.Images.SetKeyName(0, "16Objects.png");
            this.IL.Images.SetKeyName(1, "FolderOpen.png");
            this.IL.Images.SetKeyName(2, "16Circle.png");
            this.IL.Images.SetKeyName(3, "16Line.png");
            this.IL.Images.SetKeyName(4, "16Rectangle.png");
            this.IL.Images.SetKeyName(5, "16Image.png");
            this.IL.Images.SetKeyName(6, "16Text.png");
            this.IL.Images.SetKeyName(7, "map.png");
            this.IL.Images.SetKeyName(8, "Legend.png");
            this.IL.Images.SetKeyName(9, "ScaleBar.png");
            this.IL.Images.SetKeyName(10, "16Compas.png");
            this.IL.Images.SetKeyName(11, "16DynamicText.png");
            this.IL.Images.SetKeyName(12, "16Graticule.png");

            // LayoutListBox
            resources.ApplyResources(this, "$this");
            this.Controls.Add(this._listPanel);
            this.Controls.Add(this._btnPanel);
            this.Name = "LayoutListBox";
            this._btnPanel.ResumeLayout(false);
            this._listPanel.ResumeLayout(false);
            this.ResumeLayout(false);
        }
Ejemplo n.º 23
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(DataGpOPGroup));
            DataGridViewCellStyle    dataGridViewCellStyle    = new DataGridViewCellStyle();

            this.groupBoxPowerControl = new GroupBox();
            this.cbDReboot            = new CheckBox();
            this.butOn  = new Button();
            this.butOff = new Button();
            this.groupBoxOutletsInfo = new GroupBox();
            this.nonOPoutletNum      = new Label();
            this.canOPoutletNum      = new Label();
            this.lbNum_noOp          = new Label();
            this.lbNum_canOp         = new Label();
            this.lbNoOp  = new Label();
            this.labInfo = new Label();
            this.dgvInfo = new DataGridView();
            this.groupBoxPowerControl.SuspendLayout();
            this.groupBoxOutletsInfo.SuspendLayout();
            ((ISupportInitialize)this.dgvInfo).BeginInit();
            base.SuspendLayout();
            this.groupBoxPowerControl.Controls.Add(this.cbDReboot);
            this.groupBoxPowerControl.Controls.Add(this.butOn);
            this.groupBoxPowerControl.Controls.Add(this.butOff);
            componentResourceManager.ApplyResources(this.groupBoxPowerControl, "groupBoxPowerControl");
            this.groupBoxPowerControl.Name    = "groupBoxPowerControl";
            this.groupBoxPowerControl.TabStop = false;
            componentResourceManager.ApplyResources(this.cbDReboot, "cbDReboot");
            this.cbDReboot.Name = "cbDReboot";
            this.cbDReboot.UseVisualStyleBackColor = true;
            this.butOn.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.butOn, "butOn");
            this.butOn.Name = "butOn";
            this.butOn.UseVisualStyleBackColor = false;
            this.butOn.Click     += new System.EventHandler(this.butOn_Click);
            this.butOff.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.butOff, "butOff");
            this.butOff.Name = "butOff";
            this.butOff.UseVisualStyleBackColor = false;
            this.butOff.Click += new System.EventHandler(this.butOff_Click);
            this.groupBoxOutletsInfo.Controls.Add(this.nonOPoutletNum);
            this.groupBoxOutletsInfo.Controls.Add(this.canOPoutletNum);
            this.groupBoxOutletsInfo.Controls.Add(this.lbNum_noOp);
            this.groupBoxOutletsInfo.Controls.Add(this.lbNum_canOp);
            componentResourceManager.ApplyResources(this.groupBoxOutletsInfo, "groupBoxOutletsInfo");
            this.groupBoxOutletsInfo.Name    = "groupBoxOutletsInfo";
            this.groupBoxOutletsInfo.TabStop = false;
            this.nonOPoutletNum.BorderStyle  = BorderStyle.Fixed3D;
            componentResourceManager.ApplyResources(this.nonOPoutletNum, "nonOPoutletNum");
            this.nonOPoutletNum.ForeColor   = Color.Black;
            this.nonOPoutletNum.Name        = "nonOPoutletNum";
            this.canOPoutletNum.BorderStyle = BorderStyle.Fixed3D;
            componentResourceManager.ApplyResources(this.canOPoutletNum, "canOPoutletNum");
            this.canOPoutletNum.ForeColor = Color.Black;
            this.canOPoutletNum.Name      = "canOPoutletNum";
            componentResourceManager.ApplyResources(this.lbNum_noOp, "lbNum_noOp");
            this.lbNum_noOp.ForeColor = Color.Black;
            this.lbNum_noOp.Name      = "lbNum_noOp";
            componentResourceManager.ApplyResources(this.lbNum_canOp, "lbNum_canOp");
            this.lbNum_canOp.ForeColor = Color.Black;
            this.lbNum_canOp.Name      = "lbNum_canOp";
            componentResourceManager.ApplyResources(this.lbNoOp, "lbNoOp");
            this.lbNoOp.ForeColor = Color.Black;
            this.lbNoOp.Name      = "lbNoOp";
            componentResourceManager.ApplyResources(this.labInfo, "labInfo");
            this.labInfo.ForeColor                     = Color.Blue;
            this.labInfo.Name                          = "labInfo";
            this.dgvInfo.AllowUserToAddRows            = false;
            this.dgvInfo.AllowUserToDeleteRows         = false;
            this.dgvInfo.AllowUserToResizeColumns      = false;
            this.dgvInfo.AllowUserToResizeRows         = false;
            this.dgvInfo.BackgroundColor               = Color.White;
            dataGridViewCellStyle.Alignment            = DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle.BackColor            = SystemColors.Control;
            dataGridViewCellStyle.Font                 = new Font("Microsoft Sans Serif", 9f);
            dataGridViewCellStyle.ForeColor            = SystemColors.WindowText;
            dataGridViewCellStyle.SelectionBackColor   = SystemColors.Highlight;
            dataGridViewCellStyle.SelectionForeColor   = SystemColors.HighlightText;
            dataGridViewCellStyle.WrapMode             = DataGridViewTriState.True;
            this.dgvInfo.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle;
            componentResourceManager.ApplyResources(this.dgvInfo, "dgvInfo");
            this.dgvInfo.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
            this.dgvInfo.MultiSelect             = false;
            this.dgvInfo.Name                    = "dgvInfo";
            this.dgvInfo.RowHeadersBorderStyle   = DataGridViewHeaderBorderStyle.Single;
            this.dgvInfo.RowHeadersVisible       = false;
            this.dgvInfo.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.DisableResizing;
            this.dgvInfo.RowTemplate.Height      = 23;
            this.dgvInfo.RowTemplate.ReadOnly    = true;
            this.dgvInfo.SelectionMode           = DataGridViewSelectionMode.FullRowSelect;
            this.dgvInfo.StandardTab             = true;
            this.dgvInfo.TabStop                 = false;
            base.AutoScaleMode                   = AutoScaleMode.None;
            this.BackColor = Color.WhiteSmoke;
            base.Controls.Add(this.groupBoxPowerControl);
            base.Controls.Add(this.groupBoxOutletsInfo);
            base.Controls.Add(this.lbNoOp);
            base.Controls.Add(this.labInfo);
            base.Controls.Add(this.dgvInfo);
            componentResourceManager.ApplyResources(this, "$this");
            base.Name = "DataGpOPGroup";
            this.groupBoxPowerControl.ResumeLayout(false);
            this.groupBoxPowerControl.PerformLayout();
            this.groupBoxOutletsInfo.ResumeLayout(false);
            ((ISupportInitialize)this.dgvInfo).EndInit();
            base.ResumeLayout(false);
        }
Ejemplo n.º 24
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            ComponentResourceManager resources = new ComponentResourceManager(typeof(PatternCollectionControl));

            this.lbxItems  = new ListBox();
            this.panel1    = new Panel();
            this.btnDown   = new Button();
            this.btnUp     = new Button();
            this.btnRemove = new Button();
            this.btnAdd    = new Button();
            this.panel1.SuspendLayout();
            this.SuspendLayout();
            //
            // lbxItems
            //
            this.lbxItems.AccessibleDescription = null;
            this.lbxItems.AccessibleName        = null;
            resources.ApplyResources(this.lbxItems, "lbxItems");
            this.lbxItems.BackgroundImage       = null;
            this.lbxItems.DrawMode              = DrawMode.OwnerDrawFixed;
            this.lbxItems.Font                  = null;
            this.lbxItems.FormattingEnabled     = true;
            this.lbxItems.Name                  = "lbxItems";
            this.lbxItems.SelectedIndexChanged += new EventHandler(this.lbxItems_SelectedIndexChanged);
            //
            // panel1
            //
            this.panel1.AccessibleDescription = null;
            this.panel1.AccessibleName        = null;
            resources.ApplyResources(this.panel1, "panel1");
            this.panel1.BackgroundImage = null;
            this.panel1.Controls.Add(this.btnDown);
            this.panel1.Controls.Add(this.btnUp);
            this.panel1.Controls.Add(this.btnRemove);
            this.panel1.Controls.Add(this.btnAdd);
            this.panel1.Font = null;
            this.panel1.Name = "panel1";
            //
            // btnDown
            //
            this.btnDown.AccessibleDescription = null;
            this.btnDown.AccessibleName        = null;
            resources.ApplyResources(this.btnDown, "btnDown");
            this.btnDown.BackgroundImage         = null;
            this.btnDown.Font                    = null;
            this.btnDown.Image                   = SymbologyFormsImages.down as Image;
            this.btnDown.Name                    = "btnDown";
            this.btnDown.UseVisualStyleBackColor = true;
            this.btnDown.Click                  += new EventHandler(this.btnDown_Click);
            //
            // btnUp
            //
            this.btnUp.AccessibleDescription = null;
            this.btnUp.AccessibleName        = null;
            resources.ApplyResources(this.btnUp, "btnUp");
            this.btnUp.BackgroundImage         = null;
            this.btnUp.Font                    = null;
            this.btnUp.Image                   = SymbologyFormsImages.up as Image;
            this.btnUp.Name                    = "btnUp";
            this.btnUp.UseVisualStyleBackColor = true;
            this.btnUp.Click                  += new EventHandler(this.btnUp_Click);
            //
            // btnRemove
            //
            this.btnRemove.AccessibleDescription = null;
            this.btnRemove.AccessibleName        = null;
            resources.ApplyResources(this.btnRemove, "btnRemove");
            this.btnRemove.BackgroundImage         = null;
            this.btnRemove.Font                    = null;
            this.btnRemove.Image                   = SymbologyFormsImages.mnuLayerClear as Image;
            this.btnRemove.Name                    = "btnRemove";
            this.btnRemove.UseVisualStyleBackColor = true;
            this.btnRemove.Click                  += new EventHandler(this.btnRemove_Click);
            //
            // btnAdd
            //
            this.btnAdd.AccessibleDescription = null;
            this.btnAdd.AccessibleName        = null;
            resources.ApplyResources(this.btnAdd, "btnAdd");
            this.btnAdd.BackgroundImage         = null;
            this.btnAdd.Font                    = null;
            this.btnAdd.Image                   = SymbologyFormsImages.mnuLayerAdd as Image;
            this.btnAdd.Name                    = "btnAdd";
            this.btnAdd.UseVisualStyleBackColor = true;
            this.btnAdd.Click                  += new EventHandler(this.btnAdd_Click);
            //
            // PatternCollectionControl
            //
            this.AccessibleDescription = null;
            this.AccessibleName        = null;
            resources.ApplyResources(this, "$this");

            this.BackgroundImage = null;
            this.Controls.Add(this.lbxItems);
            this.Controls.Add(this.panel1);
            this.Font = null;
            this.Name = "PatternCollectionControl";
            this.panel1.ResumeLayout(false);
            this.ResumeLayout(false);
        }
Ejemplo n.º 25
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(OtherDevicesAllDev));
            DataGridViewCellStyle    dataGridViewCellStyle    = new DataGridViewCellStyle();
            DataGridViewCellStyle    dataGridViewCellStyle2   = new DataGridViewCellStyle();
            DataGridViewCellStyle    dataGridViewCellStyle3   = new DataGridViewCellStyle();
            DataGridViewCellStyle    dataGridViewCellStyle4   = new DataGridViewCellStyle();
            DataGridViewCellStyle    dataGridViewCellStyle5   = new DataGridViewCellStyle();

            this.tableLayoutPanel1          = new TableLayoutPanel();
            this.panel1                     = new Panel();
            this.tabCtrlOtherDevSetting     = new TabControl();
            this.tabISGateway               = new TabPage();
            this.butSaveISGSetting          = new Button();
            this.groupBox1                  = new GroupBox();
            this.cbAtenPDU                  = new CheckBox();
            this.tbISGServicePort           = new TextBox();
            this.lbServicePort              = new Label();
            this.cbEnableISGateway          = new CheckBox();
            this.panel2                     = new Panel();
            this.dgvAllOtherDevices         = new DataGridView();
            this.butOthDevicesDel           = new Button();
            this.butAddOthDevices           = new Button();
            this.butOthDeviceSetup          = new Button();
            this.dataGridViewTextBoxColumn1 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn2 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn3 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn4 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn5 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn6 = new DataGridViewTextBoxColumn();
            this.dgvtbOthDeviceNm           = new DataGridViewTextBoxColumn();
            this.dgvtbOthDeviceType         = new DataGridViewTextBoxColumn();
            this.dgvtbOthDeviceIp           = new DataGridViewTextBoxColumn();
            this.dgvtbOthDeviceStatus       = new DataGridViewTextBoxColumn();
            this.dgvtbOthDeviceID           = new DataGridViewTextBoxColumn();
            this.dgvtbcdeviceId             = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn7 = new DataGridViewTextBoxColumn();
            this.tableLayoutPanel1.SuspendLayout();
            this.panel1.SuspendLayout();
            this.tabCtrlOtherDevSetting.SuspendLayout();
            this.tabISGateway.SuspendLayout();
            this.groupBox1.SuspendLayout();
            this.panel2.SuspendLayout();
            ((ISupportInitialize)this.dgvAllOtherDevices).BeginInit();
            base.SuspendLayout();
            componentResourceManager.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
            this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 0);
            this.tableLayoutPanel1.Controls.Add(this.panel2, 0, 1);
            this.tableLayoutPanel1.Name = "tableLayoutPanel1";
            this.panel1.BorderStyle     = BorderStyle.FixedSingle;
            this.panel1.Controls.Add(this.tabCtrlOtherDevSetting);
            componentResourceManager.ApplyResources(this.panel1, "panel1");
            this.panel1.Name = "panel1";
            this.tabCtrlOtherDevSetting.Controls.Add(this.tabISGateway);
            componentResourceManager.ApplyResources(this.tabCtrlOtherDevSetting, "tabCtrlOtherDevSetting");
            this.tabCtrlOtherDevSetting.Name          = "tabCtrlOtherDevSetting";
            this.tabCtrlOtherDevSetting.SelectedIndex = 0;
            this.tabISGateway.BackColor   = Color.WhiteSmoke;
            this.tabISGateway.BorderStyle = BorderStyle.FixedSingle;
            this.tabISGateway.Controls.Add(this.butSaveISGSetting);
            this.tabISGateway.Controls.Add(this.groupBox1);
            componentResourceManager.ApplyResources(this.tabISGateway, "tabISGateway");
            this.tabISGateway.Name           = "tabISGateway";
            this.butSaveISGSetting.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.butSaveISGSetting, "butSaveISGSetting");
            this.butSaveISGSetting.Name = "butSaveISGSetting";
            this.butSaveISGSetting.UseVisualStyleBackColor = false;
            this.butSaveISGSetting.Click += new System.EventHandler(this.butSaveISGSetting_Click);
            this.groupBox1.Controls.Add(this.cbAtenPDU);
            this.groupBox1.Controls.Add(this.tbISGServicePort);
            this.groupBox1.Controls.Add(this.lbServicePort);
            this.groupBox1.Controls.Add(this.cbEnableISGateway);
            componentResourceManager.ApplyResources(this.groupBox1, "groupBox1");
            this.groupBox1.Name    = "groupBox1";
            this.groupBox1.TabStop = false;
            componentResourceManager.ApplyResources(this.cbAtenPDU, "cbAtenPDU");
            this.cbAtenPDU.Name = "cbAtenPDU";
            this.cbAtenPDU.UseVisualStyleBackColor = true;
            componentResourceManager.ApplyResources(this.tbISGServicePort, "tbISGServicePort");
            this.tbISGServicePort.Name      = "tbISGServicePort";
            this.tbISGServicePort.KeyPress += new KeyPressEventHandler(this.tbISGServicePort_KeyPress);
            componentResourceManager.ApplyResources(this.lbServicePort, "lbServicePort");
            this.lbServicePort.Name = "lbServicePort";
            componentResourceManager.ApplyResources(this.cbEnableISGateway, "cbEnableISGateway");
            this.cbEnableISGateway.Name = "cbEnableISGateway";
            this.cbEnableISGateway.UseVisualStyleBackColor = true;
            this.cbEnableISGateway.CheckedChanged         += new System.EventHandler(this.checkBoxEnableISGateway_CheckedChanged);
            this.panel2.Controls.Add(this.dgvAllOtherDevices);
            this.panel2.Controls.Add(this.butOthDevicesDel);
            this.panel2.Controls.Add(this.butAddOthDevices);
            this.panel2.Controls.Add(this.butOthDeviceSetup);
            componentResourceManager.ApplyResources(this.panel2, "panel2");
            this.panel2.Name = "panel2";
            this.dgvAllOtherDevices.AllowUserToAddRows       = false;
            this.dgvAllOtherDevices.AllowUserToDeleteRows    = false;
            this.dgvAllOtherDevices.AllowUserToResizeColumns = false;
            this.dgvAllOtherDevices.AllowUserToResizeRows    = false;
            this.dgvAllOtherDevices.BackgroundColor          = Color.WhiteSmoke;
            this.dgvAllOtherDevices.CellBorderStyle          = DataGridViewCellBorderStyle.Raised;
            dataGridViewCellStyle.Alignment          = DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle.BackColor          = Color.FromArgb(206, 206, 206);
            dataGridViewCellStyle.Font               = new Font("Microsoft Sans Serif", 9f);
            dataGridViewCellStyle.ForeColor          = Color.Black;
            dataGridViewCellStyle.SelectionBackColor = Color.FromArgb(206, 206, 206);
            dataGridViewCellStyle.SelectionForeColor = Color.Black;
            dataGridViewCellStyle.WrapMode           = DataGridViewTriState.True;
            this.dgvAllOtherDevices.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle;
            this.dgvAllOtherDevices.ColumnHeadersHeightSizeMode   = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.dgvAllOtherDevices.Columns.AddRange(new DataGridViewColumn[]
            {
                this.dgvtbOthDeviceNm,
                this.dgvtbOthDeviceType,
                this.dgvtbOthDeviceIp,
                this.dgvtbOthDeviceStatus,
                this.dgvtbOthDeviceID,
                this.dgvtbcdeviceId
            });
            dataGridViewCellStyle2.Alignment          = DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle2.BackColor          = Color.White;
            dataGridViewCellStyle2.Font               = new Font("Microsoft Sans Serif", 9f);
            dataGridViewCellStyle2.ForeColor          = Color.Black;
            dataGridViewCellStyle2.SelectionBackColor = Color.White;
            dataGridViewCellStyle2.SelectionForeColor = Color.Black;
            dataGridViewCellStyle2.WrapMode           = DataGridViewTriState.False;
            this.dgvAllOtherDevices.DefaultCellStyle  = dataGridViewCellStyle2;
            this.dgvAllOtherDevices.GridColor         = Color.White;
            componentResourceManager.ApplyResources(this.dgvAllOtherDevices, "dgvAllOtherDevices");
            this.dgvAllOtherDevices.Name                       = "dgvAllOtherDevices";
            dataGridViewCellStyle3.Alignment                   = DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle3.BackColor                   = Color.White;
            dataGridViewCellStyle3.Font                        = new Font("Microsoft Sans Serif", 9f);
            dataGridViewCellStyle3.ForeColor                   = Color.Black;
            dataGridViewCellStyle3.SelectionBackColor          = Color.White;
            dataGridViewCellStyle3.SelectionForeColor          = Color.Black;
            dataGridViewCellStyle3.WrapMode                    = DataGridViewTriState.True;
            this.dgvAllOtherDevices.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
            this.dgvAllOtherDevices.RowHeadersVisible          = false;
            this.dgvAllOtherDevices.RowHeadersWidthSizeMode    = DataGridViewRowHeadersWidthSizeMode.DisableResizing;
            dataGridViewCellStyle4.BackColor                   = Color.White;
            dataGridViewCellStyle4.ForeColor                   = Color.Black;
            dataGridViewCellStyle4.SelectionBackColor          = Color.Blue;
            dataGridViewCellStyle4.SelectionForeColor          = Color.White;
            this.dgvAllOtherDevices.RowsDefaultCellStyle       = dataGridViewCellStyle4;
            this.dgvAllOtherDevices.RowTemplate.Height         = 23;
            this.dgvAllOtherDevices.SelectionMode              = DataGridViewSelectionMode.FullRowSelect;
            this.dgvAllOtherDevices.StandardTab                = true;
            this.dgvAllOtherDevices.TabStop                    = false;
            this.dgvAllOtherDevices.CellDoubleClick           += new DataGridViewCellEventHandler(this.dgvAllOtherDevices_CellDoubleClick);
            this.butOthDevicesDel.BackColor                    = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.butOthDevicesDel, "butOthDevicesDel");
            this.butOthDevicesDel.Name = "butOthDevicesDel";
            this.butOthDevicesDel.UseVisualStyleBackColor = false;
            this.butOthDevicesDel.Click    += new System.EventHandler(this.butOthDevicesDel_Click);
            this.butAddOthDevices.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.butAddOthDevices, "butAddOthDevices");
            this.butAddOthDevices.Name = "butAddOthDevices";
            this.butAddOthDevices.UseVisualStyleBackColor = false;
            this.butAddOthDevices.Click     += new System.EventHandler(this.butAddOthDevices_Click);
            this.butOthDeviceSetup.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.butOthDeviceSetup, "butOthDeviceSetup");
            this.butOthDeviceSetup.Name = "butOthDeviceSetup";
            this.butOthDeviceSetup.UseVisualStyleBackColor = false;
            this.butOthDeviceSetup.Click += new System.EventHandler(this.butOthDeviceSetup_Click);
            dataGridViewCellStyle5.Font   = new Font("SimSun", 9f, FontStyle.Regular, GraphicsUnit.Point, 134);
            this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle5;
            componentResourceManager.ApplyResources(this.dataGridViewTextBoxColumn1, "dataGridViewTextBoxColumn1");
            this.dataGridViewTextBoxColumn1.Name     = "dataGridViewTextBoxColumn1";
            this.dataGridViewTextBoxColumn1.ReadOnly = true;
            componentResourceManager.ApplyResources(this.dataGridViewTextBoxColumn2, "dataGridViewTextBoxColumn2");
            this.dataGridViewTextBoxColumn2.Name     = "dataGridViewTextBoxColumn2";
            this.dataGridViewTextBoxColumn2.ReadOnly = true;
            componentResourceManager.ApplyResources(this.dataGridViewTextBoxColumn3, "dataGridViewTextBoxColumn3");
            this.dataGridViewTextBoxColumn3.Name     = "dataGridViewTextBoxColumn3";
            this.dataGridViewTextBoxColumn3.ReadOnly = true;
            componentResourceManager.ApplyResources(this.dataGridViewTextBoxColumn4, "dataGridViewTextBoxColumn4");
            this.dataGridViewTextBoxColumn4.Name     = "dataGridViewTextBoxColumn4";
            this.dataGridViewTextBoxColumn4.ReadOnly = true;
            componentResourceManager.ApplyResources(this.dataGridViewTextBoxColumn5, "dataGridViewTextBoxColumn5");
            this.dataGridViewTextBoxColumn5.Name     = "dataGridViewTextBoxColumn5";
            this.dataGridViewTextBoxColumn5.ReadOnly = true;
            componentResourceManager.ApplyResources(this.dataGridViewTextBoxColumn6, "dataGridViewTextBoxColumn6");
            this.dataGridViewTextBoxColumn6.Name     = "dataGridViewTextBoxColumn6";
            this.dataGridViewTextBoxColumn6.ReadOnly = true;
            componentResourceManager.ApplyResources(this.dgvtbOthDeviceNm, "dgvtbOthDeviceNm");
            this.dgvtbOthDeviceNm.Name     = "dgvtbOthDeviceNm";
            this.dgvtbOthDeviceNm.ReadOnly = true;
            componentResourceManager.ApplyResources(this.dgvtbOthDeviceType, "dgvtbOthDeviceType");
            this.dgvtbOthDeviceType.Name     = "dgvtbOthDeviceType";
            this.dgvtbOthDeviceType.ReadOnly = true;
            componentResourceManager.ApplyResources(this.dgvtbOthDeviceIp, "dgvtbOthDeviceIp");
            this.dgvtbOthDeviceIp.Name     = "dgvtbOthDeviceIp";
            this.dgvtbOthDeviceIp.ReadOnly = true;
            componentResourceManager.ApplyResources(this.dgvtbOthDeviceStatus, "dgvtbOthDeviceStatus");
            this.dgvtbOthDeviceStatus.Name     = "dgvtbOthDeviceStatus";
            this.dgvtbOthDeviceStatus.ReadOnly = true;
            componentResourceManager.ApplyResources(this.dgvtbOthDeviceID, "dgvtbOthDeviceID");
            this.dgvtbOthDeviceID.Name     = "dgvtbOthDeviceID";
            this.dgvtbOthDeviceID.ReadOnly = true;
            componentResourceManager.ApplyResources(this.dgvtbcdeviceId, "dgvtbcdeviceId");
            this.dgvtbcdeviceId.Name = "dgvtbcdeviceId";
            componentResourceManager.ApplyResources(this.dataGridViewTextBoxColumn7, "dataGridViewTextBoxColumn7");
            this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
            base.AutoScaleMode = AutoScaleMode.None;
            this.BackColor     = Color.WhiteSmoke;
            base.Controls.Add(this.tableLayoutPanel1);
            componentResourceManager.ApplyResources(this, "$this");
            base.Name = "OtherDevicesAllDev";
            this.tableLayoutPanel1.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.tabCtrlOtherDevSetting.ResumeLayout(false);
            this.tabISGateway.ResumeLayout(false);
            this.groupBox1.ResumeLayout(false);
            this.groupBox1.PerformLayout();
            this.panel2.ResumeLayout(false);
            ((ISupportInitialize)this.dgvAllOtherDevices).EndInit();
            base.ResumeLayout(false);
        }
Ejemplo n.º 26
0
        private void InitializeComponent()
        {
            DataGridViewCellStyle    dataGridViewCellStyle    = new DataGridViewCellStyle();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(UserManAllUsers));
            DataGridViewCellStyle    dataGridViewCellStyle2   = new DataGridViewCellStyle();

            this.dgvUserAll  = new DataGridView();
            this.butUserDel  = new Button();
            this.butUserEdit = new Button();
            this.butUserAdd  = new Button();
            this.dataGridViewTextBoxColumn1 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn2 = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn3 = new DataGridViewTextBoxColumn();
            this.dgvUserNm = new DataGridViewTextBoxColumn();
            this.dgvRole   = new DataGridViewTextBoxColumn();
            this.dgvState  = new DataGridViewTextBoxColumn();
            ((ISupportInitialize)this.dgvUserAll).BeginInit();
            base.SuspendLayout();
            this.dgvUserAll.AllowUserToAddRows       = false;
            this.dgvUserAll.AllowUserToDeleteRows    = false;
            this.dgvUserAll.AllowUserToResizeColumns = false;
            this.dgvUserAll.AllowUserToResizeRows    = false;
            this.dgvUserAll.BackgroundColor          = Color.WhiteSmoke;
            this.dgvUserAll.CellBorderStyle          = DataGridViewCellBorderStyle.Raised;
            dataGridViewCellStyle.Alignment          = DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle.BackColor          = Color.Gainsboro;
            dataGridViewCellStyle.Font                    = new Font("Microsoft Sans Serif", 9f);
            dataGridViewCellStyle.ForeColor               = Color.Black;
            dataGridViewCellStyle.SelectionBackColor      = SystemColors.Highlight;
            dataGridViewCellStyle.SelectionForeColor      = SystemColors.HighlightText;
            dataGridViewCellStyle.WrapMode                = DataGridViewTriState.True;
            this.dgvUserAll.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle;
            componentResourceManager.ApplyResources(this.dgvUserAll, "dgvUserAll");
            this.dgvUserAll.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
            this.dgvUserAll.Columns.AddRange(new DataGridViewColumn[]
            {
                this.dgvUserNm,
                this.dgvRole,
                this.dgvState
            });
            this.dgvUserAll.GridColor                  = Color.White;
            this.dgvUserAll.MultiSelect                = false;
            this.dgvUserAll.Name                       = "dgvUserAll";
            dataGridViewCellStyle2.Alignment           = DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle2.BackColor           = Color.FromArgb(206, 206, 206);
            dataGridViewCellStyle2.Font                = new Font("Microsoft Sans Serif", 9f);
            dataGridViewCellStyle2.ForeColor           = Color.Black;
            dataGridViewCellStyle2.SelectionBackColor  = SystemColors.Highlight;
            dataGridViewCellStyle2.SelectionForeColor  = SystemColors.HighlightText;
            dataGridViewCellStyle2.WrapMode            = DataGridViewTriState.True;
            this.dgvUserAll.RowHeadersDefaultCellStyle = dataGridViewCellStyle2;
            this.dgvUserAll.RowHeadersVisible          = false;
            this.dgvUserAll.RowHeadersWidthSizeMode    = DataGridViewRowHeadersWidthSizeMode.DisableResizing;
            this.dgvUserAll.RowTemplate.Height         = 23;
            this.dgvUserAll.SelectionMode              = DataGridViewSelectionMode.FullRowSelect;
            this.dgvUserAll.StandardTab                = true;
            this.dgvUserAll.TabStop                    = false;
            this.dgvUserAll.CellDoubleClick           += new DataGridViewCellEventHandler(this.dgvUserAll_CellDoubleClick);
            this.dgvUserAll.SelectionChanged          += new System.EventHandler(this.dgvUserAll_SelectionChanged);
            this.butUserDel.BackColor                  = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.butUserDel, "butUserDel");
            this.butUserDel.Name = "butUserDel";
            this.butUserDel.UseVisualStyleBackColor = false;
            this.butUserDel.Click     += new System.EventHandler(this.butUserDel_Click);
            this.butUserEdit.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.butUserEdit, "butUserEdit");
            this.butUserEdit.Name = "butUserEdit";
            this.butUserEdit.UseVisualStyleBackColor = false;
            this.butUserEdit.Click   += new System.EventHandler(this.butUserEdit_Click);
            this.butUserAdd.BackColor = Color.Gainsboro;
            componentResourceManager.ApplyResources(this.butUserAdd, "butUserAdd");
            this.butUserAdd.Name = "butUserAdd";
            this.butUserAdd.UseVisualStyleBackColor = false;
            this.butUserAdd.Click += new System.EventHandler(this.butUserAdd_Click);
            componentResourceManager.ApplyResources(this.dataGridViewTextBoxColumn1, "dataGridViewTextBoxColumn1");
            this.dataGridViewTextBoxColumn1.Name     = "dataGridViewTextBoxColumn1";
            this.dataGridViewTextBoxColumn1.ReadOnly = true;
            componentResourceManager.ApplyResources(this.dataGridViewTextBoxColumn2, "dataGridViewTextBoxColumn2");
            this.dataGridViewTextBoxColumn2.Name         = "dataGridViewTextBoxColumn2";
            this.dataGridViewTextBoxColumn2.ReadOnly     = true;
            this.dataGridViewTextBoxColumn3.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            componentResourceManager.ApplyResources(this.dataGridViewTextBoxColumn3, "dataGridViewTextBoxColumn3");
            this.dataGridViewTextBoxColumn3.Name     = "dataGridViewTextBoxColumn3";
            this.dataGridViewTextBoxColumn3.ReadOnly = true;
            componentResourceManager.ApplyResources(this.dgvUserNm, "dgvUserNm");
            this.dgvUserNm.Name     = "dgvUserNm";
            this.dgvUserNm.ReadOnly = true;
            componentResourceManager.ApplyResources(this.dgvRole, "dgvRole");
            this.dgvRole.Name          = "dgvRole";
            this.dgvRole.ReadOnly      = true;
            this.dgvState.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            componentResourceManager.ApplyResources(this.dgvState, "dgvState");
            this.dgvState.Name     = "dgvState";
            this.dgvState.ReadOnly = true;
            base.AutoScaleMode     = AutoScaleMode.None;
            this.BackColor         = Color.WhiteSmoke;
            base.Controls.Add(this.dgvUserAll);
            base.Controls.Add(this.butUserDel);
            base.Controls.Add(this.butUserEdit);
            base.Controls.Add(this.butUserAdd);
            componentResourceManager.ApplyResources(this, "$this");
            base.Name = "UserManAllUsers";
            ((ISupportInitialize)this.dgvUserAll).EndInit();
            base.ResumeLayout(false);
        }
Ejemplo n.º 27
0
        /// <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();
            ComponentResourceManager resources = new ComponentResourceManager(typeof(MeasureDialog));

            this.toolStrip1      = new ToolStrip();
            this.tsbDistance     = new ToolStripButton();
            this.tsbArea         = new ToolStripButton();
            this.tsbClear        = new ToolStripButton();
            this.ttHelp          = new ToolTip(this.components);
            this.lblPartialValue = new Label();
            this.lblTotalValue   = new Label();
            this.cmbUnits        = new ComboBox();
            this.label1          = new Label();
            this.lblMeasure      = new Label();
            this.label2          = new Label();
            this.label3          = new Label();
            this.lblTotalUnits   = new Label();
            this.label4          = new Label();
            this.toolStrip1.SuspendLayout();
            this.SuspendLayout();

            // toolStrip1
            this.toolStrip1.Items.AddRange(new ToolStripItem[] { this.tsbDistance, this.tsbArea, this.tsbClear });
            resources.ApplyResources(this.toolStrip1, "toolStrip1");
            this.toolStrip1.Name = "toolStrip1";

            // tsbDistance
            this.tsbDistance.Checked      = true;
            this.tsbDistance.CheckOnClick = true;
            this.tsbDistance.CheckState   = CheckState.Checked;
            this.tsbDistance.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.tsbDistance.Image        = Properties.Resources.Line;
            resources.ApplyResources(this.tsbDistance, "tsbDistance");
            this.tsbDistance.Name   = "tsbDistance";
            this.tsbDistance.Click += new EventHandler(this.DistanceButtonClick);

            // tsbArea
            this.tsbArea.CheckOnClick = true;
            this.tsbArea.DisplayStyle = ToolStripItemDisplayStyle.Image;
            this.tsbArea.Image        = Properties.Resources.Area;
            resources.ApplyResources(this.tsbArea, "tsbArea");
            this.tsbArea.Name   = "tsbArea";
            this.tsbArea.Click += new EventHandler(this.AreaButtonClick);

            // tsbClear
            this.tsbClear.DisplayStyle = ToolStripItemDisplayStyle.Image;
            resources.ApplyResources(this.tsbClear, "tsbClear");
            this.tsbClear.Name   = "tsbClear";
            this.tsbClear.Click += new EventHandler(this.TsbClearClick);

            // lblPartialValue
            resources.ApplyResources(this.lblPartialValue, "lblPartialValue");
            this.lblPartialValue.Name = "lblPartialValue";
            this.ttHelp.SetToolTip(this.lblPartialValue, resources.GetString("lblPartialValue.ToolTip"));

            // lblTotalValue
            resources.ApplyResources(this.lblTotalValue, "lblTotalValue");
            this.lblTotalValue.Name = "lblTotalValue";
            this.ttHelp.SetToolTip(this.lblTotalValue, resources.GetString("lblTotalValue.ToolTip"));

            // cmbUnits
            this.cmbUnits.DropDownStyle     = ComboBoxStyle.DropDownList;
            this.cmbUnits.FormattingEnabled = true;
            resources.ApplyResources(this.cmbUnits, "cmbUnits");
            this.cmbUnits.Name = "cmbUnits";
            this.ttHelp.SetToolTip(this.cmbUnits, resources.GetString("cmbUnits.ToolTip"));
            this.cmbUnits.SelectedIndexChanged += new EventHandler(this.CmbUnitsSelectedIndexChanged);

            // label1
            resources.ApplyResources(this.label1, "label1");
            this.label1.Name = "label1";

            // lblMeasure
            resources.ApplyResources(this.lblMeasure, "lblMeasure");
            this.lblMeasure.Name = "lblMeasure";

            // label2
            resources.ApplyResources(this.label2, "label2");
            this.label2.Name = "label2";

            // label3
            resources.ApplyResources(this.label3, "label3");
            this.label3.Name = "label3";

            // lblTotalUnits
            this.lblTotalUnits.BackColor = System.Drawing.SystemColors.Control;
            resources.ApplyResources(this.lblTotalUnits, "lblTotalUnits");
            this.lblTotalUnits.Name = "lblTotalUnits";

            // label4
            resources.ApplyResources(this.label4, "label4");
            this.label4.Name = "label4";

            // MeasureDialog
            resources.ApplyResources(this, "$this");
            this.Controls.Add(this.label4);
            this.Controls.Add(this.lblTotalUnits);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.cmbUnits);
            this.Controls.Add(this.lblTotalValue);
            this.Controls.Add(this.lblPartialValue);
            this.Controls.Add(this.lblMeasure);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.toolStrip1);
            this.FormBorderStyle = FormBorderStyle.FixedToolWindow;
            this.MaximizeBox     = false;
            this.MinimizeBox     = false;
            this.Name            = "MeasureDialog";
            this.ShowIcon        = false;
            this.TopMost         = true;
            this.toolStrip1.ResumeLayout(false);
            this.toolStrip1.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Ejemplo n.º 28
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(OtherDevices));

            this.tvDevOther              = new TreeView();
            this.imageList1              = new ImageList(this.components);
            this.splitContainer1         = new SplitContainer();
            this.otherDeviceISGSubMeter1 = new OtherDeviceISGSubMeter();
            this.otherDeviceISGBrPanel1  = new OtherDeviceISGBrPanel();
            this.otherDevicesAllDev1     = new OtherDevicesAllDev();
            ((ISupportInitialize)this.splitContainer1).BeginInit();
            this.splitContainer1.Panel1.SuspendLayout();
            this.splitContainer1.Panel2.SuspendLayout();
            this.splitContainer1.SuspendLayout();
            base.SuspendLayout();
            this.tvDevOther.BorderStyle = BorderStyle.None;
            componentResourceManager.ApplyResources(this.tvDevOther, "tvDevOther");
            this.tvDevOther.HideSelection = false;
            this.tvDevOther.ImageList     = this.imageList1;
            this.tvDevOther.Name          = "tvDevOther";
            this.tvDevOther.Nodes.AddRange(new TreeNode[]
            {
                (TreeNode)componentResourceManager.GetObject("tvDevOther.Nodes")
            });
            this.tvDevOther.AfterCollapse   += new TreeViewEventHandler(this.tvDevOther_AfterCollapse);
            this.tvDevOther.AfterExpand     += new TreeViewEventHandler(this.tvDevOther_AfterExpand);
            this.tvDevOther.AfterSelect     += new TreeViewEventHandler(this.tvDevOther_AfterSelect);
            this.imageList1.ImageStream      = (ImageListStreamer)componentResourceManager.GetObject("imageList1.ImageStream");
            this.imageList1.TransparentColor = Color.Transparent;
            this.imageList1.Images.SetKeyName(0, "folderclosed.gif");
            this.imageList1.Images.SetKeyName(1, "folderopen.gif");
            this.imageList1.Images.SetKeyName(2, "gatewayoff.gif");
            this.imageList1.Images.SetKeyName(3, "gatewayon.gif");
            this.imageList1.Images.SetKeyName(4, "ammeteroff.gif");
            this.imageList1.Images.SetKeyName(5, "ammeteron.gif");
            this.imageList1.Images.SetKeyName(6, "Bank.png");
            this.splitContainer1.BorderStyle = BorderStyle.Fixed3D;
            componentResourceManager.ApplyResources(this.splitContainer1, "splitContainer1");
            this.splitContainer1.Name = "splitContainer1";
            this.splitContainer1.Panel1.Controls.Add(this.tvDevOther);
            this.splitContainer1.Panel2.Controls.Add(this.otherDeviceISGSubMeter1);
            this.splitContainer1.Panel2.Controls.Add(this.otherDeviceISGBrPanel1);
            this.splitContainer1.Panel2.Controls.Add(this.otherDevicesAllDev1);
            this.otherDeviceISGSubMeter1.BackColor = Color.WhiteSmoke;
            componentResourceManager.ApplyResources(this.otherDeviceISGSubMeter1, "otherDeviceISGSubMeter1");
            this.otherDeviceISGSubMeter1.Name     = "otherDeviceISGSubMeter1";
            this.otherDeviceISGBrPanel1.BackColor = Color.WhiteSmoke;
            componentResourceManager.ApplyResources(this.otherDeviceISGBrPanel1, "otherDeviceISGBrPanel1");
            this.otherDeviceISGBrPanel1.Name   = "otherDeviceISGBrPanel1";
            this.otherDevicesAllDev1.BackColor = Color.WhiteSmoke;
            componentResourceManager.ApplyResources(this.otherDevicesAllDev1, "otherDevicesAllDev1");
            this.otherDevicesAllDev1.Name = "otherDevicesAllDev1";
            base.AutoScaleMode            = AutoScaleMode.None;
            this.BackColor = Color.WhiteSmoke;
            base.Controls.Add(this.splitContainer1);
            componentResourceManager.ApplyResources(this, "$this");
            base.Name = "OtherDevices";
            this.splitContainer1.Panel1.ResumeLayout(false);
            this.splitContainer1.Panel2.ResumeLayout(false);
            ((ISupportInitialize)this.splitContainer1).EndInit();
            this.splitContainer1.ResumeLayout(false);
            base.ResumeLayout(false);
        }
Ejemplo n.º 29
0
            private void InitializeComponent()
            {
                ComponentResourceManager resources = new ComponentResourceManager(typeof(BinaryEditor));

                _byteViewer   = new ByteViewer();
                _buttonOK     = new Button();
                _buttonSave   = new Button();
                _groupBoxMode = new GroupBox();
                _radioButtonsTableLayoutPanel = new TableLayoutPanel();
                _radioUnicode                = new RadioButton();
                _radioAuto                   = new RadioButton();
                _radioAnsi                   = new RadioButton();
                _radioHex                    = new RadioButton();
                _okSaveTableLayoutPanel      = new TableLayoutPanel();
                _overarchingTableLayoutPanel = new TableLayoutPanel();
                _byteViewer.SuspendLayout();
                _groupBoxMode.SuspendLayout();
                _radioButtonsTableLayoutPanel.SuspendLayout();
                _okSaveTableLayoutPanel.SuspendLayout();
                _overarchingTableLayoutPanel.SuspendLayout();
                SuspendLayout();

                //
                // byteViewer
                //
                resources.ApplyResources(_byteViewer, "byteViewer");
                _byteViewer.SetDisplayMode(DisplayMode.Auto);
                _byteViewer.Name   = "byteViewer";
                _byteViewer.Margin = Padding.Empty;
                _byteViewer.Dock   = DockStyle.Fill;
                //
                // buttonOK
                //
                resources.ApplyResources(_buttonOK, "buttonOK");
                _buttonOK.AutoSizeMode = AutoSizeMode.GrowAndShrink;
                _buttonOK.DialogResult = DialogResult.OK;
                _buttonOK.Margin       = new Padding(0, 0, 3, 0);
                _buttonOK.MinimumSize  = new Size(75, 23);
                _buttonOK.Name         = "buttonOK";
                _buttonOK.Padding      = new Padding(10, 0, 10, 0);
                _buttonOK.Click       += new EventHandler(ButtonOK_click);
                //
                // buttonSave
                //
                resources.ApplyResources(_buttonSave, "buttonSave");
                _buttonSave.AutoSizeMode = AutoSizeMode.GrowAndShrink;
                _buttonSave.Margin       = new Padding(3, 0, 0, 0);
                _buttonSave.MinimumSize  = new Size(75, 23);
                _buttonSave.Name         = "buttonSave";
                _buttonSave.Padding      = new Padding(10, 0, 10, 0);
                _buttonSave.Click       += new EventHandler(ButtonSave_click);
                //
                // groupBoxMode
                //
                resources.ApplyResources(_groupBoxMode, "groupBoxMode");
                _groupBoxMode.AutoSizeMode = AutoSizeMode.GrowAndShrink;
                _groupBoxMode.Controls.Add(_radioButtonsTableLayoutPanel);
                _groupBoxMode.Margin  = new Padding(0, 3, 0, 3);
                _groupBoxMode.Name    = "groupBoxMode";
                _groupBoxMode.Padding = new Padding(0);
                _groupBoxMode.TabStop = false;
                //
                // radioButtonsTableLayoutPanel
                //
                resources.ApplyResources(_radioButtonsTableLayoutPanel, "radioButtonsTableLayoutPanel");
                _radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F));
                _radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F));
                _radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F));
                _radioButtonsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 25F));
                _radioButtonsTableLayoutPanel.Controls.Add(_radioUnicode, 3, 0);
                _radioButtonsTableLayoutPanel.Controls.Add(_radioAuto, 0, 0);
                _radioButtonsTableLayoutPanel.Controls.Add(_radioAnsi, 2, 0);
                _radioButtonsTableLayoutPanel.Controls.Add(_radioHex, 1, 0);
                _radioButtonsTableLayoutPanel.Margin = new Padding(9);
                _radioButtonsTableLayoutPanel.Name   = "radioButtonsTableLayoutPanel";
                _radioButtonsTableLayoutPanel.RowStyles.Add(new RowStyle());
                //
                // radioUnicode
                //
                resources.ApplyResources(_radioUnicode, "radioUnicode");
                _radioUnicode.Margin          = new Padding(3, 0, 0, 0);
                _radioUnicode.Name            = "radioUnicode";
                _radioUnicode.CheckedChanged += new EventHandler(RadioUnicode_checkedChanged);
                //
                // radioAuto
                //
                resources.ApplyResources(_radioAuto, "radioAuto");
                _radioAuto.Checked         = true;
                _radioAuto.Margin          = new Padding(0, 0, 3, 0);
                _radioAuto.Name            = "radioAuto";
                _radioAuto.CheckedChanged += new EventHandler(RadioAuto_checkedChanged);
                //
                // radioAnsi
                //
                resources.ApplyResources(_radioAnsi, "radioAnsi");
                _radioAnsi.Margin          = new Padding(3, 0, 3, 0);
                _radioAnsi.Name            = "radioAnsi";
                _radioAnsi.CheckedChanged += new EventHandler(RadioAnsi_checkedChanged);
                //
                // radioHex
                //
                resources.ApplyResources(_radioHex, "radioHex");
                _radioHex.Margin          = new Padding(3, 0, 3, 0);
                _radioHex.Name            = "radioHex";
                _radioHex.CheckedChanged += new EventHandler(RadioHex_checkedChanged);
                //
                // okSaveTableLayoutPanel
                //
                resources.ApplyResources(_okSaveTableLayoutPanel, "okSaveTableLayoutPanel");
                _okSaveTableLayoutPanel.AutoSizeMode = AutoSizeMode.GrowAndShrink;
                _okSaveTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
                _okSaveTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
                _okSaveTableLayoutPanel.Controls.Add(_buttonOK, 0, 0);
                _okSaveTableLayoutPanel.Controls.Add(_buttonSave, 1, 0);
                _okSaveTableLayoutPanel.Margin = new Padding(0, 9, 0, 0);
                _okSaveTableLayoutPanel.Name   = "okSaveTableLayoutPanel";
                _okSaveTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 50F));
                //
                // overarchingTableLayoutPanel
                //
                resources.ApplyResources(_overarchingTableLayoutPanel, "overarchingTableLayoutPanel");
                _overarchingTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
                _overarchingTableLayoutPanel.Controls.Add(_byteViewer, 0, 0);
                _overarchingTableLayoutPanel.Controls.Add(_groupBoxMode, 0, 1);
                _overarchingTableLayoutPanel.Controls.Add(_okSaveTableLayoutPanel, 0, 2);
                _overarchingTableLayoutPanel.Name = "overarchingTableLayoutPanel";
                _overarchingTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
                _overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());
                _overarchingTableLayoutPanel.RowStyles.Add(new RowStyle());

                //
                // BinaryUI
                //
                AcceptButton = _buttonOK;
                resources.ApplyResources(this, "$this");
                AutoScaleMode = AutoScaleMode.Font;
                CancelButton  = _buttonOK;
                Controls.Add(_overarchingTableLayoutPanel);
                FormBorderStyle    = FormBorderStyle.FixedDialog;
                HelpButton         = true;
                MaximizeBox        = false;
                MinimizeBox        = false;
                Name               = "BinaryUI";
                ShowIcon           = false;
                ShowInTaskbar      = false;
                HelpRequested     += new HelpEventHandler(Form_HelpRequested);
                HelpButtonClicked += new CancelEventHandler(Form_HelpButtonClicked);
                _byteViewer.ResumeLayout(false);
                _byteViewer.PerformLayout();
                _groupBoxMode.ResumeLayout(false);
                _groupBoxMode.PerformLayout();
                _radioButtonsTableLayoutPanel.ResumeLayout(false);
                _radioButtonsTableLayoutPanel.PerformLayout();
                _okSaveTableLayoutPanel.ResumeLayout(false);
                _okSaveTableLayoutPanel.PerformLayout();
                _overarchingTableLayoutPanel.ResumeLayout(false);
                _overarchingTableLayoutPanel.PerformLayout();
                ResumeLayout(false);
            }
Ejemplo n.º 30
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            ComponentResourceManager resources = new ComponentResourceManager(typeof(LayoutListBox));

            this._lbxItems  = new ListBox();
            this._btnPanel  = new Panel();
            this._btnDown   = new Button();
            this._btnUp     = new Button();
            this._btnRemove = new Button();
            this._listPanel = new Panel();
            this._btnPanel.SuspendLayout();
            this._listPanel.SuspendLayout();
            this.SuspendLayout();
            //
            // _lbxItems
            //
            resources.ApplyResources(this._lbxItems, "_lbxItems");
            this._lbxItems.DrawMode          = DrawMode.OwnerDrawFixed;
            this._lbxItems.FormattingEnabled = true;
            this._lbxItems.Name                  = "_lbxItems";
            this._lbxItems.SelectionMode         = SelectionMode.MultiExtended;
            this._lbxItems.SelectedIndexChanged += lbxItems_SelectedIndexChanged;
            //
            // _btnPanel
            //
            resources.ApplyResources(this._btnPanel, "_btnPanel");
            this._btnPanel.Controls.Add(this._btnDown);
            this._btnPanel.Controls.Add(this._btnUp);
            this._btnPanel.Controls.Add(this._btnRemove);
            this._btnPanel.Name = "_btnPanel";
            //
            // _btnDown
            //
            resources.ApplyResources(this._btnDown, "_btnDown");
            this._btnDown.Image = Images.down;
            this._btnDown.Name  = "_btnDown";
            this._btnDown.UseVisualStyleBackColor = true;
            this._btnDown.Click += btnDown_Click;
            //
            // _btnUp
            //
            resources.ApplyResources(this._btnUp, "_btnUp");
            this._btnUp.Image = Images.up;
            this._btnUp.Name  = "_btnUp";
            this._btnUp.UseVisualStyleBackColor = true;
            this._btnUp.Click += btnUp_Click;
            //
            // _btnRemove
            //
            resources.ApplyResources(this._btnRemove, "_btnRemove");
            this._btnRemove.Image = Images.mnuLayerClear;
            this._btnRemove.Name  = "_btnRemove";
            this._btnRemove.UseVisualStyleBackColor = true;
            this._btnRemove.Click += btnRemove_Click;
            //
            // _listPanel
            //
            resources.ApplyResources(this._listPanel, "_listPanel");
            this._listPanel.BackColor = Color.White;
            this._listPanel.Controls.Add(this._lbxItems);
            this._listPanel.Name = "_listPanel";
            //
            // LayoutListBox
            //
            resources.ApplyResources(this, "$this");
            this.Controls.Add(this._listPanel);
            this.Controls.Add(this._btnPanel);
            this.Name = "LayoutListBox";
            this._btnPanel.ResumeLayout(false);
            this._listPanel.ResumeLayout(false);
            this.ResumeLayout(false);
        }
Ejemplo n.º 31
0
        private void InitializeComponent()
        {
            ComponentResourceManager resources = new ComponentResourceManager(typeof(JobDetails));

            this.JobDetailsHeaderPanel = new PanelWithHeader();
            this.tableLayoutPanel1     = new TableLayoutPanel();
            this.label1                 = new Label();
            this.label2                 = new Label();
            this.label3                 = new Label();
            this.label4                 = new Label();
            this.label5                 = new Label();
            this.IdLabel                = new Label();
            this.StatusDetailsLabel     = new Label();
            this.DestSRLabel            = new Label();
            this.NetReadLabel           = new Label();
            this.DiskWriteLabel         = new Label();
            this.ErrorMessageLabel      = new Label();
            this.ErrorMessageValueLabel = new Label();
            this.GetJobLogLinkLabel     = new LinkLabel();
            this.ElapsedLabel           = new Label();
            this.ElapsedValueLabel      = new Label();
            this.JobDetailsHeaderPanel.SuspendLayout();
            this.tableLayoutPanel1.SuspendLayout();
            base.SuspendLayout();

            resources.ApplyResources(this.label1, "label1");
            this.label1.Name = "label1";
            this.label1.Font = new Font(this.label1.Font, this.label1.Font.Style | FontStyle.Bold);
            resources.ApplyResources(this.label2, "label2");
            this.label2.Name = "label2";
            this.label2.Font = new Font(this.label2.Font, this.label2.Font.Style | FontStyle.Bold);
            resources.ApplyResources(this.label3, "label3");
            this.label3.Name = "label3";
            this.label3.Font = new Font(this.label3.Font, this.label3.Font.Style | FontStyle.Bold);
            resources.ApplyResources(this.label4, "label4");
            this.label4.Name = "label4";
            this.label4.Font = new Font(this.label4.Font, this.label4.Font.Style | FontStyle.Bold);
            resources.ApplyResources(this.label5, "label5");
            this.label5.Name = "label5";
            this.label5.Font = new Font(this.label5.Font, this.label5.Font.Style | FontStyle.Bold);
            resources.ApplyResources(this.IdLabel, "IdLabel");
            this.IdLabel.Name = "IdLabel";
            this.IdLabel.Size = new Size(150, 20);

            resources.ApplyResources(this.StatusDetailsLabel, "StatusDetailsLabel");
            this.tableLayoutPanel1.SetColumnSpan(this.StatusDetailsLabel, 2);
            this.StatusDetailsLabel.Name = "StatusDetailsLabel";
            resources.ApplyResources(this.DestSRLabel, "DestSRLabel");
            this.DestSRLabel.Name = "DestSRLabel";
            resources.ApplyResources(this.NetReadLabel, "NetReadLabel");
            this.NetReadLabel.Name = "NetReadLabel";
            resources.ApplyResources(this.DiskWriteLabel, "DiskWriteLabel");
            this.DiskWriteLabel.Name = "DiskWriteLabel";
            resources.ApplyResources(this.ErrorMessageLabel, "ErrorMessageLabel");
            this.ErrorMessageLabel.Name = "ErrorMessageLabel";
            this.ErrorMessageLabel.Font = new Font(this.ErrorMessageLabel.Font, this.ErrorMessageLabel.Font.Style | FontStyle.Bold);
            resources.ApplyResources(this.ErrorMessageValueLabel, "ErrorMessageValueLabel");
            this.tableLayoutPanel1.SetColumnSpan(this.ErrorMessageValueLabel, 2);
            this.ErrorMessageValueLabel.Name = "ErrorMessageValueLabel";
            this.ErrorMessageValueLabel.Size = new Size(500, 20);
            resources.ApplyResources(this.GetJobLogLinkLabel, "GetJobLogLinkLabel");
            this.GetJobLogLinkLabel.Name         = "GetJobLogLinkLabel";
            this.GetJobLogLinkLabel.TabStop      = true;
            this.GetJobLogLinkLabel.LinkClicked += new LinkLabelLinkClickedEventHandler(this.GetJobLogLinkLabel_LinkClicked);
            resources.ApplyResources(this.ElapsedLabel, "ElapsedLabel");
            this.ElapsedLabel.Name  = "ElapsedLabel";
            this.ElapsedLabel.Width = 200;
            this.ElapsedLabel.Font  = new Font(this.ElapsedLabel.Font, this.ElapsedLabel.Font.Style | FontStyle.Bold);
            resources.ApplyResources(this.ElapsedValueLabel, "ElapsedValueLabel");
            this.tableLayoutPanel1.SetColumnSpan(this.ElapsedValueLabel, 2);
            this.ElapsedValueLabel.Name = "ElapsedValueLabel";

            resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
            this.tableLayoutPanel1.Controls.Add(this.label1, 0, 1);
            this.tableLayoutPanel1.Controls.Add(this.label2, 0, 3);
            this.tableLayoutPanel1.Controls.Add(this.label3, 0, 5);
            this.tableLayoutPanel1.Controls.Add(this.label4, 0, 7);
            this.tableLayoutPanel1.Controls.Add(this.label5, 0, 9);
            this.tableLayoutPanel1.Controls.Add(this.IdLabel, 1, 1);
            this.tableLayoutPanel1.Controls.Add(this.StatusDetailsLabel, 1, 3);
            this.tableLayoutPanel1.Controls.Add(this.DestSRLabel, 1, 5);
            this.tableLayoutPanel1.Controls.Add(this.NetReadLabel, 1, 7);
            this.tableLayoutPanel1.Controls.Add(this.DiskWriteLabel, 1, 9);
            this.tableLayoutPanel1.Controls.Add(this.ErrorMessageLabel, 0, 13);
            this.tableLayoutPanel1.Controls.Add(this.ErrorMessageValueLabel, 1, 13);
            this.tableLayoutPanel1.Controls.Add(this.GetJobLogLinkLabel, 2, 1);
            this.tableLayoutPanel1.Controls.Add(this.ElapsedLabel, 0, 11);
            this.tableLayoutPanel1.Controls.Add(this.ElapsedValueLabel, 1, 11);
            this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
            this.tableLayoutPanel1.Dock     = DockStyle.Fill;
            this.tableLayoutPanel1.Location = new Point(0, 0);
            this.tableLayoutPanel1.Size     = new Size(970, 300);

            resources.ApplyResources(this.JobDetailsHeaderPanel, "JobDetailsHeaderPanel");
            this.JobDetailsHeaderPanel.BackColor = Color.White;
            this.JobDetailsHeaderPanel.Controls.Add(this.tableLayoutPanel1);
            this.JobDetailsHeaderPanel.HeaderColor1         = Color.FromArgb(0x59, 0x87, 0xd6);
            this.JobDetailsHeaderPanel.HeaderColor2         = Color.FromArgb(3, 0x38, 0x93);
            this.JobDetailsHeaderPanel.HeaderText           = "任务摘要";   //Job Summary
            this.JobDetailsHeaderPanel.Icon                 = null;
            this.JobDetailsHeaderPanel.IconTransparentColor = Color.White;
            this.JobDetailsHeaderPanel.Name                 = "JobDetailsHeaderPanel";
            this.JobDetailsHeaderPanel.Dock                 = DockStyle.Fill;
            this.JobDetailsHeaderPanel.Location             = new Point(0, 0);
            this.JobDetailsHeaderPanel.Size                 = new Size(970, 300);

            resources.ApplyResources(this, "$this");
            base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            base.Controls.Add(this.JobDetailsHeaderPanel);
            base.Name = "JobDetails";
            this.JobDetailsHeaderPanel.ResumeLayout(false);
            this.tableLayoutPanel1.ResumeLayout(false);
            this.tableLayoutPanel1.PerformLayout();
            base.ResumeLayout(false);
        }
Ejemplo n.º 32
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            ComponentResourceManager resources = new ComponentResourceManager(typeof(DeleteFieldsDialog));

            this.lblHeading = new Label();
            this.clb        = new CheckedListBox();
            this.btnCancel  = new Button();
            this.btnOK      = new Button();
            this.SuspendLayout();
            //
            // lblHeading
            //
            this.lblHeading.AccessibleDescription = null;
            this.lblHeading.AccessibleName        = null;
            resources.ApplyResources(this.lblHeading, "lblHeading");
            this.lblHeading.Font = null;
            this.lblHeading.Name = "lblHeading";
            //
            // clb
            //
            this.clb.AccessibleDescription = null;
            this.clb.AccessibleName        = null;
            resources.ApplyResources(this.clb, "clb");
            this.clb.BackgroundImage   = null;
            this.clb.CheckOnClick      = true;
            this.clb.FormattingEnabled = true;
            this.clb.Name = "clb";
            this.clb.SelectedIndexChanged += new EventHandler(this.clb_SelectedIndexChanged);
            //
            // btnCancel
            //
            this.btnCancel.AccessibleDescription = null;
            this.btnCancel.AccessibleName        = null;
            resources.ApplyResources(this.btnCancel, "btnCancel");
            this.btnCancel.BackgroundImage         = null;
            this.btnCancel.Font                    = null;
            this.btnCancel.Name                    = "btnCancel";
            this.btnCancel.UseVisualStyleBackColor = true;
            this.btnCancel.Click                  += new EventHandler(this.btnCancel_Click);
            //
            // btnOK
            //
            this.btnOK.AccessibleDescription = null;
            this.btnOK.AccessibleName        = null;
            resources.ApplyResources(this.btnOK, "btnOK");
            this.btnOK.BackgroundImage         = null;
            this.btnOK.Font                    = null;
            this.btnOK.Name                    = "btnOK";
            this.btnOK.UseVisualStyleBackColor = true;
            this.btnOK.Click                  += new EventHandler(this.btnOK_Click);
            //
            // frmDeleteField
            //
            this.AccessibleDescription = null;
            this.AccessibleName        = null;
            resources.ApplyResources(this, "$this");
            this.AutoScaleMode   = ((ContainerControl)this).AutoScaleMode;
            this.BackgroundImage = null;
            this.Controls.Add(this.btnOK);
            this.Controls.Add(this.btnCancel);
            this.Controls.Add(this.clb);
            this.Controls.Add(this.lblHeading);
            this.Font     = null;
            this.Icon     = null;
            this.Name     = "DeleteFieldsDialog";
            this.ShowIcon = false;
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Ejemplo n.º 33
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            ComponentResourceManager resources = new ComponentResourceManager(typeof(TabColorDialog));

            this.panel1           = new Panel();
            this.btnApply         = new Button();
            this.btnCancel        = new Button();
            this.cmdOk            = new Button();
            this.tabColorControl1 = new TabColorControl();
            this.panel1.SuspendLayout();
            this.SuspendLayout();
            //
            // panel1
            //
            this.panel1.AccessibleDescription = null;
            this.panel1.AccessibleName        = null;
            resources.ApplyResources(this.panel1, "panel1");
            this.panel1.BackgroundImage = null;
            this.panel1.Controls.Add(this.btnApply);
            this.panel1.Controls.Add(this.btnCancel);
            this.panel1.Controls.Add(this.cmdOk);
            this.panel1.Font = null;
            this.panel1.Name = "panel1";
            //
            // btnApply
            //
            this.btnApply.AccessibleDescription = null;
            this.btnApply.AccessibleName        = null;
            resources.ApplyResources(this.btnApply, "btnApply");
            this.btnApply.BackgroundImage         = null;
            this.btnApply.Font                    = null;
            this.btnApply.Name                    = "btnApply";
            this.btnApply.UseVisualStyleBackColor = true;
            this.btnApply.Click                  += new EventHandler(this.btnApply_Click);
            //
            // btnCancel
            //
            this.btnCancel.AccessibleDescription = null;
            this.btnCancel.AccessibleName        = null;
            resources.ApplyResources(this.btnCancel, "btnCancel");
            this.btnCancel.BackgroundImage = null;
            //this.btnCancel.DialogResult = DialogResult.Cancel;
            this.btnCancel.Font = null;
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.UseVisualStyleBackColor = true;
            this.btnCancel.Click += new EventHandler(this.btnCancel_Click);
            //
            // cmdOk
            //
            this.cmdOk.AccessibleDescription = null;
            this.cmdOk.AccessibleName        = null;
            resources.ApplyResources(this.cmdOk, "cmdOk");
            this.cmdOk.BackgroundImage = null;
            //this.cmdOk.DialogResult = DialogResult.OK;
            this.cmdOk.Font = null;
            this.cmdOk.Name = "cmdOk";
            this.cmdOk.UseVisualStyleBackColor = true;
            this.cmdOk.Click += new EventHandler(this.cmdOk_Click);
            //
            // tabColorControl1
            //
            this.tabColorControl1.AccessibleDescription = null;
            this.tabColorControl1.AccessibleName        = null;
            resources.ApplyResources(this.tabColorControl1, "tabColorControl1");
            this.tabColorControl1.BackgroundImage = null;
            this.tabColorControl1.EndColor        = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
            this.tabColorControl1.Font            = null;
            this.tabColorControl1.HueShift        = 0;
            this.tabColorControl1.Name            = "tabColorControl1";
            this.tabColorControl1.StartColor      = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
            this.tabColorControl1.UseRangeChecked = true;
            //
            // TabColorDialog
            //
            this.AccessibleDescription = null;
            this.AccessibleName        = null;
            resources.ApplyResources(this, "$this");

            this.BackgroundImage = null;
            this.Controls.Add(this.tabColorControl1);
            this.Controls.Add(this.panel1);
            this.Font          = null;
            this.Icon          = null;
            this.Name          = "TabColorDialog";
            this.ShowIcon      = false;
            this.ShowInTaskbar = false;
            this.panel1.ResumeLayout(false);
            this.ResumeLayout(false);
        }
Ejemplo n.º 34
0
    private void cboLanguages_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (cboLanguages.SelectedIndex != -1)
        {
            if (cboLanguages.SelectedItem.ToString() == "Ελληνικά")
            {
                //SaveLanguage("el-GR");
                System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("el-GR");
            }
            else
            {
                //SaveLanguage("en-US");
                System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");
            }
            //MessageBox.Show("Yo need to restart the application for the changes to take effect");
        }

        ComponentResourceManager resources = new ComponentResourceManager(typeof(GIMEDForm));
        resources.ApplyResources(this, "$this");
        applyResources(resources, this.Controls);

        ComponentResourceManager resources1 = new ComponentResourceManager(typeof(MDControl));
        applyResources(resources1, mdControl1.Controls);
    }
Ejemplo n.º 35
0
        /// <summary>
        /// Applies localized resources to the specified <see cref="Form"/> object according to the
        ///   <see cref="Thread.CurrentUICulture"/>.
        /// </summary>
        /// <param name="form">The <see cref="Form"/> object to which changed UI culture should be applied.</param>
        private void ApplyCultureToForm(Form form)
        {
            // Create a resource manager for the form and determine its fields via reflection.
            // Create and fill a collection, containing all infos needed to apply localized resources.
            ComponentResourceManager resources = new ComponentResourceManager(form.GetType());

            FieldInfo[] fields = form.GetType().GetFields(BindingFlags.Instance | BindingFlags.DeclaredOnly |
                                                          BindingFlags.NonPublic);
#if Prior2
            ChangeInfoList changeInfos = new ChangeInfoList(fields.Length + 1);
#else
            List <ChangeInfo> changeInfos = new List <ChangeInfo>(fields.Length + 1);
#endif
            changeInfos.Add(new ChangeInfo("$this", form, form.GetType()));
            for (int index = 0; index < fields.Length; index++)
            {
                changeInfos.Add(new ChangeInfo(fields[index].Name, fields[index].GetValue(form), fields[index].FieldType));
            }
#if Prior2
            changeInfos.TrimToSize();
#else
            changeInfos.TrimExcess();
#endif

            // Call SuspendLayout for Form and all fields derived from Control, so assignment of
            //   localized resources doesn't change layout immediately.
            for (int index = 0; index < changeInfos.Count; index++)
            {
                if (changeInfos[index].Type.IsSubclassOf(typeof(Control)) && changeInfos[index].Value != null)
                {
                    changeInfos[index].Type.InvokeMember("SuspendLayout", BindingFlags.InvokeMethod, null,
                                                         changeInfos[index].Value, null);
                }
            }

            if (this.applyText)
            {
                // If available, assign localized text to Form and fields.
                String text;
                for (int index = 0; index < changeInfos.Count; index++)
                {
                    if (changeInfos[index].Type.GetProperty("Text", typeof(String)) != null &&
                        changeInfos[index].Type.GetProperty("Text", typeof(String)).CanWrite)
                    {
                        text = resources.GetString(changeInfos[index].Name + ".Text");
                        if (text != null && text != "")
                        {
                            changeInfos[index].Type.InvokeMember("Text", BindingFlags.SetProperty, null,
                                                                 changeInfos[index].Value, new object[] { text });
                        }
                    }
                }
            }

            if (this.applySize)
            {
                // If available, assign localized sizes to Form and fields.
                object  size;
                Control control;
                int     index = 0;
                if (this.preserveFormSize)
                {
                    // Skip the form entry in changeInfos collection.
                    index = 1;
                }
                for (; index < changeInfos.Count; index++)
                {
                    if (changeInfos[index].Type.GetProperty("Size", typeof(Size)) != null &&
                        changeInfos[index].Type.GetProperty("Size", typeof(Size)).CanWrite)
                    {
                        size = resources.GetObject(changeInfos[index].Name + ".Size");
                        if (size != null && size.GetType() == typeof(Size))
                        {
                            if (changeInfos[index].Type.IsSubclassOf(typeof(Control)))
                            {// In case of an inheritor of Control take into account the Anchor property.
                                control = (Control)changeInfos[index].Value;
                                if ((control.Anchor & (AnchorStyles.Left | AnchorStyles.Right)) == (AnchorStyles.Left | AnchorStyles.Right))
                                {
                                    // Control is bound to the left and right edge, so preserve its width.
                                    size = new Size(control.Width, ((Size)size).Height);
                                }
                                if ((control.Anchor & (AnchorStyles.Top | AnchorStyles.Bottom)) == (AnchorStyles.Top | AnchorStyles.Bottom))
                                {
                                    // Control is bound to the top and bottom edge, so preserve its height.
                                    size = new Size(((Size)size).Width, control.Height);
                                }
                                control.Size = (Size)size;
                            }
                            else
                            {
                                changeInfos[index].Type.InvokeMember("Size", BindingFlags.SetProperty, null,
                                                                     changeInfos[index].Value, new object[] { size });
                            }
                        }
                    }

                    if (changeInfos[index].Type.GetProperty("ClientSize", typeof(Size)) != null &&
                        changeInfos[index].Type.GetProperty("ClientSize", typeof(Size)).CanWrite)
                    {
                        size = resources.GetObject(changeInfos[index].Name + ".ClientSize");
                        if (size != null && size.GetType() == typeof(Size))
                        {
                            if (changeInfos[index].Type.IsSubclassOf(typeof(Control)))
                            {// In case of an inheritor of Control take into account the Anchor property.
                                control = (Control)changeInfos[index].Value;
                                if ((control.Anchor & (AnchorStyles.Left | AnchorStyles.Right)) == (AnchorStyles.Left | AnchorStyles.Right))
                                {
                                    // Control is bound to the left and right edge, so preserve the width of its client area.
                                    size = new Size(control.ClientSize.Width, ((Size)size).Height);
                                }
                                if ((control.Anchor & (AnchorStyles.Top | AnchorStyles.Bottom)) == (AnchorStyles.Top | AnchorStyles.Bottom))
                                {
                                    // Control is bound to the top and bottom edge, so preserve the height of its client area.
                                    size = new Size(((Size)size).Width, control.ClientSize.Height);
                                }
                                control.ClientSize = (Size)size;
                            }
                            else
                            {
                                changeInfos[index].Type.InvokeMember("ClientSize", BindingFlags.SetProperty, null,
                                                                     changeInfos[index].Value, new object[] { size });
                            }
                        }
                    }
                }
            }

            if (this.applyLocation)
            {
                // If available, assign localized locations to Form and fields.
                object  location;
                Control control;
                int     index = 0;
                if (this.preserveFormLocation)
                {
                    // Skip the form entry in changeInfos collection.
                    index = 1;
                }
                for (; index < changeInfos.Count; index++)
                {
                    if (changeInfos[index].Type.GetProperty("Location", typeof(Point)) != null &&
                        changeInfos[index].Type.GetProperty("Location", typeof(Point)).CanWrite)
                    {
                        location = resources.GetObject(changeInfos[index].Name + ".Location");
                        if (location != null && location.GetType() == typeof(Point))
                        {
                            if (changeInfos[index].Type.IsSubclassOf(typeof(Control)))
                            {// In case of an inheritor of Control take into account the Anchor property.
                                control = (Control)changeInfos[index].Value;
                                if ((control.Anchor & (AnchorStyles.Left | AnchorStyles.Right)) == AnchorStyles.Right)
                                {
                                    // Control is bound to the right but not the left edge, so preserve its x-coordinate.
                                    location = new Point(control.Left, ((Point)location).Y);
                                }
                                if ((control.Anchor & (AnchorStyles.Top | AnchorStyles.Bottom)) == AnchorStyles.Bottom)
                                {
                                    // Control is bound to the bottom but not the top edge, so preserve its y-coordinate.
                                    location = new Point(((Point)location).X, control.Top);
                                }
                                control.Location = (Point)location;
                            }
                            else
                            {
                                changeInfos[index].Type.InvokeMember("Location", BindingFlags.SetProperty, null,
                                                                     changeInfos[index].Value, new object[] { location });
                            }
                        }
                    }
                }
            }

            if (this.applyRightToLeft)
            {
                // If available, assign localized RightToLeft values to Form and fields.
                object rightToLeft;
                for (int index = 0; index < changeInfos.Count; index++)
                {
                    if (changeInfos[index].Type.GetProperty("RightToLeft", typeof(RightToLeft)) != null &&
                        changeInfos[index].Type.GetProperty("RightToLeft", typeof(RightToLeft)).CanWrite)
                    {
                        rightToLeft = resources.GetObject(changeInfos[index].Name + ".RightToLeft");
                        if (rightToLeft != null && rightToLeft.GetType() == typeof(RightToLeft))
                        {
                            changeInfos[index].Type.InvokeMember("RightToLeft", BindingFlags.SetProperty, null,
                                                                 changeInfos[index].Value, new object[] { rightToLeft });
                        }
                    }
                }
            }

#if !Prior2
            if (this.applyRightToLeftLayout)
            {
                // If available, assign localized RightToLeftLayout values to Form and fields.
                object rightToLeftLayout;
                for (int index = 0; index < changeInfos.Count; index++)
                {
                    if (changeInfos[index].Type.GetProperty("RightToLeftLayout", typeof(bool)) != null &&
                        changeInfos[index].Type.GetProperty("RightToLeftLayout", typeof(bool)).CanWrite)
                    {
                        rightToLeftLayout = resources.GetObject(changeInfos[index].Name + ".RightToLeftLayout");
                        if (rightToLeftLayout != null && rightToLeftLayout.GetType() == typeof(bool))
                        {
                            changeInfos[index].Type.InvokeMember("RightToLeftLayout", BindingFlags.SetProperty, null,
                                                                 changeInfos[index].Value, new object[] { rightToLeftLayout });
                        }
                    }
                }
            }
#endif

            if (this.applyToolTip)
            {
                // If available, assign localized ToolTipText to fields.
                // Also search for a ToolTip component in the current form.
                ToolTip toolTip = null;
                for (int index = 1; index < changeInfos.Count; index++)
                {
                    if (changeInfos[index].Type == typeof(ToolTip))
                    {
                        toolTip = (ToolTip)changeInfos[index].Value;
                        resources.ApplyResources(toolTip, changeInfos[index].Name);
                        changeInfos.Remove(changeInfos[index]);
                    }
#if !Prior2
                    String text;
                    if (changeInfos[index].Type.GetProperty("ToolTipText", typeof(String)) != null &&
                        changeInfos[index].Type.GetProperty("ToolTipText", typeof(String)).CanWrite)
                    {
                        text = resources.GetString(changeInfos[index].Name + ".ToolTipText");
                        if (text != null)
                        {
                            changeInfos[index].Type.InvokeMember("ToolTipText", BindingFlags.SetProperty, null,
                                                                 changeInfos[index].Value, new object[] { text });
                        }
                    }
#endif
                }

                if (toolTip != null)
                {// Form contains a ToolTip component.
                    // If available, assign localized tooltips to Form and fields.
                    String text;
                    for (int index = 0; index < changeInfos.Count; index++)
                    {
                        if (changeInfos[index].Type.IsSubclassOf(typeof(Control)))
                        {
                            text = resources.GetString(changeInfos[index].Name + ".ToolTip");
                            if (text != null)
                            {
                                toolTip.SetToolTip((Control)changeInfos[index].Value, text);
                            }
                        }
                    }
                }
            }

            if (this.applyHelp)
            {
                // Search for a HelpProvider component in the current form.
                HelpProvider helpProvider = null;
                for (int index = 1; index < changeInfos.Count; index++)
                {
                    if (changeInfos[index].Type == typeof(HelpProvider))
                    {
                        helpProvider = (HelpProvider)changeInfos[index].Value;
                        resources.ApplyResources(helpProvider, changeInfos[index].Name);
                        changeInfos.Remove(changeInfos[index]);
                        break;
                    }
                }

                if (helpProvider != null)
                {
                    // If available, assign localized help to Form and fields.
                    String text;
                    object help;
                    for (int index = 0; index < changeInfos.Count; index++)
                    {
                        if (changeInfos[index].Type.IsSubclassOf(typeof(Control)))
                        {
                            text = resources.GetString(changeInfos[index].Name + ".HelpKeyword");
                            if (text != null)
                            {
                                helpProvider.SetHelpKeyword((Control)changeInfos[index].Value, text);
                            }
                            help = resources.GetObject(changeInfos[index].Name + ".HelpNavigator");
                            if (help != null && help.GetType() == typeof(HelpNavigator))
                            {
                                helpProvider.SetHelpNavigator((Control)changeInfos[index].Value, (HelpNavigator)help);
                            }
                            text = resources.GetString(changeInfos[index].Name + ".HelpString");
                            if (text != null)
                            {
                                helpProvider.SetHelpString((Control)changeInfos[index].Value, text);
                            }
                            help = resources.GetObject(changeInfos[index].Name + ".ShowHelp");
                            if (help != null && help.GetType() == typeof(bool))
                            {
                                helpProvider.SetShowHelp((Control)changeInfos[index].Value, (bool)help);
                            }
                        }
                    }
                }
            }

            // Call ResumeLayout for Form and all fields derived from Control to resume layout logic.
            for (int index = changeInfos.Count - 1; index >= 0; index--)
            {
                if (changeInfos[index].Type.IsSubclassOf(typeof(Control)) && changeInfos[index].Value != null)
                {
                    changeInfos[index].Type.InvokeMember("ResumeLayout", BindingFlags.InvokeMethod, null,
                                                         changeInfos[index].Value, new object[] { true });
                }
            }
        }
Ejemplo n.º 36
0
Archivo: test1.cs Proyecto: mono/gert
	static void Main ()
	{
		ComponentResourceManager crm = new ComponentResourceManager (
			typeof (MyComponent));

		Thread.CurrentThread.CurrentUICulture = new CultureInfo ("en-GB");
		Thread.CurrentThread.CurrentCulture = new CultureInfo ("nl-BE");

		MyComponent comp = new MyComponent ("Welcome", "System");
		crm.ApplyResources (comp, "$this", CultureInfo.InvariantCulture);

		Assert.IsNotNull (comp.BackgroundImage, "#A1");
		Assert.IsNotNull (comp.Company, "#A2");
		Assert.AreEqual ("OSF", comp.Company, "#A3");
		Assert.AreEqual (0, comp.Interval, "#A4");
		Assert.IsTrue (comp.Localizable, "#A5");
		Assert.IsNull (comp.Name, "#A6");
		Assert.IsNotNull (comp.Text, "#A7");
		Assert.AreEqual ("Mono", comp.Text, "#A8");
		Assert.IsNotNull (comp.Title, "#A9");
		Assert.AreEqual ("Welcome", comp.Title, "#A10");
#if NET_2_0
		Assert.IsNull (comp.Zone, "#A11");
#else
		Assert.IsNotNull (comp.Zone, "#A11");
		Assert.AreEqual (string.Empty, comp.Zone, "#A12");
#endif

		comp = new MyComponent ("Welcome", "System");
		crm.IgnoreCase = true;
		crm.ApplyResources (comp, "$this", CultureInfo.InvariantCulture);

		Assert.IsNotNull (comp.BackgroundImage, "#B1");
		Assert.IsNotNull (comp.Company, "#B2");
		Assert.AreEqual ("OSF", comp.Company, "#B3");
		Assert.AreEqual (0, comp.Interval, "#B4");
		Assert.IsTrue (comp.Localizable, "#B5");
		Assert.IsNotNull (comp.Name, "#B6");
		Assert.AreEqual ("Mono Component", comp.Name, "#B7");
		Assert.IsNotNull (comp.Text, "#B8");
		Assert.AreEqual ("Mono", comp.Text, "#B9");
		Assert.IsNotNull (comp.Title, "#B10");
		Assert.AreEqual ("Welcome", comp.Title, "#B11");
#if NET_2_0
		Assert.IsNull (comp.Zone, "#B12");
#else
		Assert.IsNotNull (comp.Zone, "#B12");
		Assert.AreEqual (string.Empty, comp.Zone, "#B13");
#endif

		comp = new MyComponent ("Welcome", "System");
		crm.ApplyResources (comp, string.Empty, CultureInfo.InvariantCulture);
		Assert.IsNull (comp.Name, "#C");

		comp = new MyComponent ("Welcome", "System");
		crm.IgnoreCase = false;
		crm.ApplyResources (comp, "$this", new CultureInfo ("nl-BE"));

		Assert.IsNotNull (comp.BackgroundImage, "#D1");
#if NET_2_0
		Assert.IsNull (comp.Company, "#D2");
#else
		Assert.IsNotNull (comp.Company, "#D2");
		Assert.AreEqual ("Company (NL-BE)", comp.Company, "#D3");
#endif
		Assert.AreEqual (0, comp.Interval, "#D4");
		Assert.IsTrue (comp.Localizable, "#D5");
		Assert.IsNull (comp.Name, "#D6");
		Assert.IsNotNull (comp.Text, "#D7");
		Assert.AreEqual ("Mono", comp.Text, "#D8");
		Assert.IsNotNull (comp.Title, "#D9");
		Assert.AreEqual ("Welcome", comp.Title, "#D10");
		Assert.IsNotNull (comp.Zone, "#D11");
		Assert.AreEqual ("Zone (NL-BE)", comp.Zone, "#D12");

		comp = new MyComponent ("Welcome", "System");
		crm.IgnoreCase = false;
		crm.ApplyResources (comp, "$this", new CultureInfo ("nl-NL"));

		Assert.IsNotNull (comp.BackgroundImage, "#E1");
		Assert.IsNotNull (comp.Company, "#E2");
		Assert.AreEqual ("OSF", comp.Company, "#E3");
		Assert.AreEqual (0, comp.Interval, "#E4");
		Assert.IsTrue (comp.Localizable, "#E5");
		Assert.IsNull (comp.Name, "#E6");
		Assert.IsNotNull (comp.Text, "#E7");
		Assert.AreEqual ("Mono", comp.Text, "#E8");
		Assert.IsNotNull (comp.Title, "#E9");
		Assert.AreEqual ("Welcome", comp.Title, "#E10");
#if NET_2_0
		Assert.IsNull (comp.Zone, "#E11");
#else
		Assert.IsNotNull (comp.Zone, "#E11");
		Assert.AreEqual (string.Empty, comp.Zone, "#E12");
#endif

		comp = new MyComponent ("Welcome", "System");
		crm.IgnoreCase = true;
		crm.ApplyResources (comp, "$this", new CultureInfo ("fr-FR"));

		Assert.IsNotNull (comp.BackgroundImage, "#F1");
#if NET_2_0
		Assert.IsNull (comp.Company, "#F2");
#else
		Assert.IsNotNull (comp.Company, "#F2");
		Assert.AreEqual ("Company (fr-FR)", comp.Company, "#F3");
#endif
		Assert.AreEqual (0, comp.Interval, "#F4");
		Assert.IsTrue (comp.Localizable, "#F5");
		Assert.IsNotNull (comp.Name, "#F6");
		Assert.AreEqual ("Component (fr-FR)", comp.Name, "#F7");
		Assert.IsNotNull (comp.Text, "#F8");
		Assert.AreEqual ("Mono", comp.Text, "#F9");
		Assert.IsNotNull (comp.Title, "#F10");
		Assert.AreEqual ("Welcome", comp.Title, "#F11");
		Assert.IsNotNull (comp.Zone, "#F12");
		Assert.AreEqual ("Zone (fr)", comp.Zone, "#F13");

		comp = new MyComponent ("Welcome", "System");
		crm.ApplyResources (comp, "$this", null);

		Assert.IsNotNull (comp.BackgroundImage, "#G1");
		Assert.IsNotNull (comp.Company, "#G2");
		Assert.AreEqual ("Company (en-GB)", comp.Company, "#G3");
		Assert.AreEqual (0, comp.Interval, "#G4");
		Assert.IsTrue (comp.Localizable, "#G5");
		Assert.IsNotNull (comp.Name, "#G6");
		Assert.AreEqual ("Component (en-GB)", comp.Name, "#G7");
		Assert.IsNotNull (comp.Text, "#G8");
		Assert.AreEqual ("Mono", comp.Text, "#G9");
		Assert.IsNotNull (comp.Title, "#G10");
		Assert.AreEqual ("Welcome", comp.Title, "#G11");
		Assert.IsNotNull (comp.Zone, "#G12");
		Assert.AreEqual ("Zone (en-GB)", comp.Zone, "#G13");

		comp = new MyComponent ("Welcome", "System");
		crm.ApplyResources (comp, "$this");

		Assert.IsNotNull (comp.BackgroundImage, "#H1");
		Assert.IsNotNull (comp.Company, "#H2");
		Assert.AreEqual ("Company (en-GB)", comp.Company, "#H3");
		Assert.AreEqual (0, comp.Interval, "#H4");
		Assert.IsTrue (comp.Localizable, "#H5");
		Assert.IsNotNull (comp.Name, "#H6");
		Assert.AreEqual ("Component (en-GB)", comp.Name, "#H7");
		Assert.IsNotNull (comp.Text, "#H8");
		Assert.AreEqual ("Mono", comp.Text, "#H9");
		Assert.IsNotNull (comp.Title, "#H10");
		Assert.AreEqual ("Welcome", comp.Title, "#H11");
		Assert.IsNotNull (comp.Zone, "#H12");
		Assert.AreEqual ("Zone (en-GB)", comp.Zone, "#H13");
	}
Ejemplo n.º 37
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(InputDisplayLength));

            numericUpDown1        = new NumericUpDown();
            label1                = new Label();
            cmbEffect             = new ComboBox();
            label2                = new Label();
            label3                = new Label();
            cbPlayAcusticSignal   = new CheckBox();
            lblExtraSoundFileName = new Label();
            openFileDialog1       = new OpenFileDialog();
            btnExtraSound         = new Button();
            numericUpDown1.BeginInit();
            SuspendLayout();
            numericUpDown1.AccessibleDescription = (string)null;
            numericUpDown1.AccessibleName        = (string)null;
            componentResourceManager.ApplyResources((object)numericUpDown1, "numericUpDown1");
            numericUpDown1.Font    = (Font)null;
            numericUpDown1.Maximum = new Decimal(new int[4]
            {
                3600,
                0,
                0,
                0
            });
            numericUpDown1.Minimum = new Decimal(new int[4]
            {
                1,
                0,
                0,
                0
            });
            numericUpDown1.Name  = "numericUpDown1";
            numericUpDown1.Value = new Decimal(new int[4]
            {
                1,
                0,
                0,
                0
            });
            label1.AccessibleDescription = (string)null;
            label1.AccessibleName        = (string)null;
            componentResourceManager.ApplyResources((object)label1, "label1");
            label1.Font = (Font)null;
            label1.Name = "label1";
            cmbEffect.AccessibleDescription = (string)null;
            cmbEffect.AccessibleName        = (string)null;
            componentResourceManager.ApplyResources((object)cmbEffect, "cmbEffect");
            cmbEffect.BackgroundImage   = (Image)null;
            cmbEffect.DropDownStyle     = ComboBoxStyle.DropDownList;
            cmbEffect.Font              = (Font)null;
            cmbEffect.FormattingEnabled = true;
            cmbEffect.Items.AddRange(new object[29]
            {
                (object)componentResourceManager.GetString("cmbEffect.Items"),
                (object)componentResourceManager.GetString("cmbEffect.Items1"),
                (object)componentResourceManager.GetString("cmbEffect.Items2"),
                (object)componentResourceManager.GetString("cmbEffect.Items3"),
                (object)componentResourceManager.GetString("cmbEffect.Items4"),
                (object)componentResourceManager.GetString("cmbEffect.Items5"),
                (object)componentResourceManager.GetString("cmbEffect.Items6"),
                (object)componentResourceManager.GetString("cmbEffect.Items7"),
                (object)componentResourceManager.GetString("cmbEffect.Items8"),
                (object)componentResourceManager.GetString("cmbEffect.Items9"),
                (object)componentResourceManager.GetString("cmbEffect.Items10"),
                (object)componentResourceManager.GetString("cmbEffect.Items11"),
                (object)componentResourceManager.GetString("cmbEffect.Items12"),
                (object)componentResourceManager.GetString("cmbEffect.Items13"),
                (object)componentResourceManager.GetString("cmbEffect.Items14"),
                (object)componentResourceManager.GetString("cmbEffect.Items15"),
                (object)componentResourceManager.GetString("cmbEffect.Items16"),
                (object)componentResourceManager.GetString("cmbEffect.Items17"),
                (object)componentResourceManager.GetString("cmbEffect.Items18"),
                (object)componentResourceManager.GetString("cmbEffect.Items19"),
                (object)componentResourceManager.GetString("cmbEffect.Items20"),
                (object)componentResourceManager.GetString("cmbEffect.Items21"),
                (object)componentResourceManager.GetString("cmbEffect.Items22"),
                (object)componentResourceManager.GetString("cmbEffect.Items23"),
                (object)componentResourceManager.GetString("cmbEffect.Items24"),
                (object)componentResourceManager.GetString("cmbEffect.Items25"),
                (object)componentResourceManager.GetString("cmbEffect.Items26"),
                (object)componentResourceManager.GetString("cmbEffect.Items27"),
                (object)componentResourceManager.GetString("cmbEffect.Items28")
            });
            cmbEffect.Name = "cmbEffect";
            label2.AccessibleDescription = (string)null;
            label2.AccessibleName        = (string)null;
            componentResourceManager.ApplyResources((object)label2, "label2");
            label2.Font = (Font)null;
            label2.Name = "label2";
            label3.AccessibleDescription = (string)null;
            label3.AccessibleName        = (string)null;
            componentResourceManager.ApplyResources((object)label3, "label3");
            label3.Font = (Font)null;
            label3.Name = "label3";
            cbPlayAcusticSignal.AccessibleDescription = (string)null;
            cbPlayAcusticSignal.AccessibleName        = (string)null;
            componentResourceManager.ApplyResources((object)cbPlayAcusticSignal, "cbPlayAcusticSignal");
            cbPlayAcusticSignal.BackgroundImage         = (Image)null;
            cbPlayAcusticSignal.Font                    = (Font)null;
            cbPlayAcusticSignal.Name                    = "cbPlayAcusticSignal";
            cbPlayAcusticSignal.UseVisualStyleBackColor = true;
            lblExtraSoundFileName.AccessibleDescription = (string)null;
            lblExtraSoundFileName.AccessibleName        = (string)null;
            componentResourceManager.ApplyResources((object)lblExtraSoundFileName, "lblExtraSoundFileName");
            lblExtraSoundFileName.Font = (Font)null;
            lblExtraSoundFileName.Name = "lblExtraSoundFileName";
            componentResourceManager.ApplyResources((object)openFileDialog1, "openFileDialog1");
            openFileDialog1.FileOk += new CancelEventHandler(openFileDialog1_FileOk);
            btnExtraSound.AccessibleDescription = (string)null;
            btnExtraSound.AccessibleName        = (string)null;
            componentResourceManager.ApplyResources((object)btnExtraSound, "btnExtraSound");
            btnExtraSound.BackgroundImage         = (Image)null;
            btnExtraSound.Font                    = (Font)null;
            btnExtraSound.Name                    = "btnExtraSound";
            btnExtraSound.UseVisualStyleBackColor = true;
            btnExtraSound.Click                  += new EventHandler(btnExtraSound_Click);
            AccessibleDescription                 = (string)null;
            AccessibleName = (string)null;
            componentResourceManager.ApplyResources((object)this, "$this");
            AutoScaleMode   = AutoScaleMode.Font;
            BackgroundImage = (Image)null;
            Controls.Add((Control)btnExtraSound);
            Controls.Add((Control)lblExtraSoundFileName);
            Controls.Add((Control)cbPlayAcusticSignal);
            Controls.Add((Control)label3);
            Controls.Add((Control)label2);
            Controls.Add((Control)cmbEffect);
            Controls.Add((Control)label1);
            Controls.Add((Control)numericUpDown1);
            Font            = (Font)null;
            FormBorderStyle = FormBorderStyle.FixedSingle;
            Icon            = (Icon)null;
            MaximizeBox     = false;
            MinimizeBox     = false;
            Name            = nameof(InputDisplayLength);
            numericUpDown1.EndInit();
            ResumeLayout(false);
            PerformLayout();
        }