当前位置: 首页>>代码示例>>C#>>正文


C# Panel.SuspendLayout方法代码示例

本文整理汇总了C#中System.Windows.Forms.Panel.SuspendLayout方法的典型用法代码示例。如果您正苦于以下问题:C# Panel.SuspendLayout方法的具体用法?C# Panel.SuspendLayout怎么用?C# Panel.SuspendLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Windows.Forms.Panel的用法示例。


在下文中一共展示了Panel.SuspendLayout方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AnchorLayoutEvents

		public void AnchorLayoutEvents ()
		{
			Panel p;
			Button b;

			p = new Panel ();

			b = new Button ();
			p.Controls.Add (b);

			p.Layout += new LayoutEventHandler (p_Layout);

			/* set the button's anchor to something different */
			b.Anchor = AnchorStyles.Bottom;
			Assert.AreEqual (1, event_count, "1");
			Assert.AreEqual ("Anchor", most_recent_args.AffectedProperty, "2");

			/* reset it to something new with the panel's layout suspended */
			event_count = 0;
			p.SuspendLayout ();
			b.Anchor = AnchorStyles.Top;
			Assert.AreEqual (0, event_count, "3");
			p.ResumeLayout ();
			Assert.AreEqual (1, event_count, "4");
			Assert.AreEqual (null, most_recent_args.AffectedProperty, "5");

			/* with the anchor style set to something, resize the parent */
			event_count = 0;
			p.Size = new Size (500, 500);
			Assert.AreEqual (1, event_count, "6");
			Assert.AreEqual ("Bounds", most_recent_args.AffectedProperty, "7");

			/* now try it with layout suspended */
			event_count = 0;
			p.SuspendLayout ();
			p.Size = new Size (400, 400);
			Assert.AreEqual (0, event_count, "8");
			p.ResumeLayout ();
			Assert.AreEqual (1, event_count, "9");
			Assert.AreEqual (null, most_recent_args.AffectedProperty, "10");

			/* with the anchor style set to something, resize the child */
			event_count = 0;
			b.Size = new Size (100, 100);
			Assert.AreEqual (1, event_count, "11");
			Assert.AreEqual ("Bounds", most_recent_args.AffectedProperty, "12");

			/* and again with layout suspended */
			event_count = 0;
			p.SuspendLayout ();
			b.Size = new Size (200, 200);
			Assert.AreEqual (0, event_count, "13");
			p.ResumeLayout ();
			Assert.AreEqual (1, event_count, "14");
			Assert.AreEqual (null, most_recent_args.AffectedProperty, "15");
		}
开发者ID:Profit0004,项目名称:mono,代码行数:56,代码来源:DefaultLayoutTest.cs

示例2: Form1

        public Form1()
        {
            Trace.WriteLine("Form1 constructor");
            _topPanel = zForm.CreatePanel(dockStyle: DockStyle.Top, backColor: Color.DodgerBlue, height: 300);
            _topPanel.SuspendLayout();

            Trace.WriteLine("Create TextBox");
            _textBox = zForm.CreateTextBox();
            //_textBox.ParentChanged += _textBox_ParentChanged;
            ControlFindForm.Find(_textBox, FormFound);
            Trace.WriteLine("before add TextBox to topPanel");
            _topPanel.Controls.Add(_textBox);
            Trace.WriteLine("after add TextBox to topPanel");

            this.SuspendLayout();

            this.AutoScaleDimensions = new SizeF(6F, 13F);
            this.AutoScaleMode = AutoScaleMode.Font;
            this.ClientSize = new Size(1000, 600);

            Trace.WriteLine("before add topPanel to Form");
            this.Controls.Add(_topPanel);
            Trace.WriteLine("after add topPanel to Form");

            _topPanel.ResumeLayout(false);
            this.ResumeLayout(false);
            this.PerformLayout();
        }
开发者ID:labeuze,项目名称:source,代码行数:28,代码来源:Form1.cs

示例3: CreatePanel

 private Panel CreatePanel(DockStyle dockStyle, Color? backColor = null)
 {
     Panel panel = new Panel();
     panel.SuspendLayout();
     panel.Dock = dockStyle;
     if (backColor != null)
         panel.BackColor = (Color)backColor;
     panel.ResumeLayout(false);
     return panel;
 }
开发者ID:labeuze,项目名称:source,代码行数:10,代码来源:RunSourceFormResultTab_v2.cs

示例4: MakeCruiserListItem

        private void MakeCruiserListItem(CruiserVM cruiser, Control parent)
        {
            Panel panel = new Panel();
            panel.SuspendLayout();

            Label lbl = new Label();

            Button btn = new Button();

            panel.BackColor = System.Drawing.Color.Tan;
            panel.Controls.Add(lbl);
            panel.Controls.Add(btn);
            panel.Size = new System.Drawing.Size(240, 25);
            panel.Dock = System.Windows.Forms.DockStyle.Top;
            //panel.Location = new System.Drawing.Point(0, 0);
            //panel.Name = "panel3";

            btn.BackColor = System.Drawing.Color.Crimson;
            btn.Dock = System.Windows.Forms.DockStyle.Right;
            //this.button1.Location = new System.Drawing.Point(213, 0);
            //this.button1.Name = "button1";
            btn.Size = new System.Drawing.Size(27, 25);
            btn.TabIndex = 1;
            btn.Text = "X";
            btn.Click += new System.EventHandler(this._removeItemBTN_Click);

            lbl.Location = new System.Drawing.Point(12, 3);
            lbl.Name = "label2";
            lbl.Size = new System.Drawing.Size(48, 20);
            lbl.Text = cruiser.Initials;

            panel.Tag = cruiser;
            panel.Parent = parent;

            #if NetCF
            FMSC.Controls.DpiHelper.AdjustControl(panel);
            FMSC.Controls.DpiHelper.AdjustControl(lbl);
            FMSC.Controls.DpiHelper.AdjustControl(btn);
            #endif

            panel.ResumeLayout(false);
        }
开发者ID:FMSC-Measurements,项目名称:FScruiserV2,代码行数:42,代码来源:FormManageCruisers.cs

示例5: CreateResultTab_v2

        private void CreateResultTab_v2()
        {
            //pan_tab_result1 = new Panel();
            //pan_tab_result1.SuspendLayout();
            //pan_tab_result1.Dock = DockStyle.Fill;
            //pan_tab_result1.BackColor = Color.Aqua;
            ////pan_tab_result1.Visible = false;
            //pan_tab_result1.ResumeLayout(false);

            //pan_tab_result2 = new Panel();
            //pan_tab_result2.SuspendLayout();
            //pan_tab_result2.Dock = DockStyle.Fill;
            //pan_tab_result2.BackColor = Color.Beige;
            ////pan_tab_result2.Visible = false;
            //pan_tab_result2.ResumeLayout(false);

            //SystemColors.Control
            pan_tab_result1 = CreatePanel(DockStyle.Fill);  // Color.Aqua
            pan_tab_result2 = CreatePanel(DockStyle.Fill);  // Color.Beige
            pan_tab_result3 = CreatePanel(DockStyle.Fill);  // Color.AliceBlue
            pan_tab_result4 = CreatePanel(DockStyle.Fill);  // Color.AntiqueWhite
            pan_tab_result5 = CreatePanel(DockStyle.Fill);  // Color.BlueViolet

            pan_result_v2 = new Panel();
            pan_result_v2.SuspendLayout();
            pan_result_v2.Dock = DockStyle.Fill;
            //pan_result_v2.BackColor = SystemColors.ControlDark;
            pan_result_v2.BackColor = Color.Transparent;
            pan_result_v2.Controls.Add(pan_tab_result1);
            pan_result_v2.Controls.Add(pan_tab_result2);
            pan_result_v2.Controls.Add(pan_tab_result3);
            pan_result_v2.Controls.Add(pan_tab_result4);
            pan_result_v2.Controls.Add(pan_tab_result5);
            //this.Controls.Add(pan_result_v2);
            pan_result_v2.ResumeLayout(false);
            pan_result_v2.PerformLayout();

            ActivePanResult(1);
        }
开发者ID:labeuze,项目名称:source,代码行数:39,代码来源:RunSourceFormResultTab_v2.cs

示例6: InitializeComponent

 private void InitializeComponent()
 {
     Panel panel = new Panel();
     this._commandPrompt = new CommandPrompt();
     panel.SuspendLayout();
     base.SuspendLayout();
     this._commandPrompt.BorderStyle = BorderStyle.None;
     this._commandPrompt.Dock = DockStyle.Fill;
     this._commandPrompt.ForeColor = Color.Cyan;
     this._commandPrompt.BackColor = Color.Black;
     this._commandPrompt.Font = new Font("Lucida Console", 8f);
     this._commandPrompt.TabIndex = 0;
     panel.BackColor = SystemColors.ControlDark;
     panel.Controls.Add(this._commandPrompt);
     panel.Dock = DockStyle.Fill;
     panel.DockPadding.All = 1;
     panel.TabIndex = 0;
     base.Controls.Add(panel);
     this.Text = "Command Shell";
     base.Icon = new Icon(typeof(CommandToolWindow), "CommandToolWindow.ico");
     panel.ResumeLayout(false);
     base.ResumeLayout(false);
 }
开发者ID:ikvm,项目名称:webmatrix,代码行数:23,代码来源:CommandToolWindow.cs

示例7: InitializeComponent

 private void InitializeComponent()
 {
     BorderPanel = new Panel();
     ContentPanel = new Panel();
     BorderPanel.SuspendLayout();
     SuspendLayout();
     // 
     // BorderPanel
     // 
     BorderPanel.BackColor = SystemColors.ControlDark;
     BorderPanel.Controls.Add(ContentPanel);
     BorderPanel.Dock = DockStyle.Fill;
     BorderPanel.Location = new Point(3, 3);
     BorderPanel.Name = "BorderPanel";
     BorderPanel.Padding = new Padding(1);
     BorderPanel.Size = new Size(286, 260);
     BorderPanel.TabIndex = 0;
     // 
     // ContentPanel
     // 
     ContentPanel.BackColor = SystemColors.Control;
     ContentPanel.Dock = DockStyle.Fill;
     ContentPanel.Location = new Point(1, 1);
     ContentPanel.Name = "ContentPanel";
     ContentPanel.Size = new Size(284, 258);
     ContentPanel.TabIndex = 1;
     // 
     // DocumentForm
     // 
     BackColor = Color.White;
     ClientSize = new Size(292, 266);
     Controls.Add(BorderPanel);
     Name = "DocumentForm";
     Padding = new Padding(3);
     BorderPanel.ResumeLayout(false);
     ResumeLayout(false);
 }
开发者ID:attila3453,项目名称:alsing,代码行数:37,代码来源:DocumentForm.cs

示例8: InitializeComponents

		/// <summary>
		///   This method was autogenerated - do not change the contents manually
		/// </summary>
		private void InitializeComponents()
		{
			System.Windows.Forms.ColumnHeader columnHeader1;
			System.Windows.Forms.Panel panel1;
			this.okButton = new System.Windows.Forms.Button();
			this.cancelButton = new System.Windows.Forms.Button();
			this.selectionListBox = new System.Windows.Forms.CheckedListBox();
			this.statusLabel = new System.Windows.Forms.Label();
			this.categoryListView = new System.Windows.Forms.ListView();
			columnHeader1 = new System.Windows.Forms.ColumnHeader();
			panel1 = new System.Windows.Forms.Panel();
			panel1.SuspendLayout();
			this.SuspendLayout();
			// 
			// columnHeader1
			// 
			columnHeader1.Width = 258;
			// 
			// panel1
			// 
			panel1.BackColor = System.Drawing.SystemColors.Control;
			panel1.Controls.Add(this.okButton);
			panel1.Controls.Add(this.cancelButton);
			panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
			panel1.Location = new System.Drawing.Point(1, 309);
			panel1.Name = "panel1";
			panel1.Size = new System.Drawing.Size(262, 29);
			panel1.TabIndex = 3;
			// 
			// okButton
			// 
			this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.okButton.Location = new System.Drawing.Point(94, 3);
			this.okButton.Name = "okButton";
			this.okButton.Size = new System.Drawing.Size(75, 23);
			this.okButton.TabIndex = 0;
			this.okButton.Text = "OK";
			this.okButton.UseCompatibleTextRendering = true;
			this.okButton.UseVisualStyleBackColor = true;
			this.okButton.Click += new System.EventHandler(this.OkButtonClick);
			// 
			// cancelButton
			// 
			this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.cancelButton.Location = new System.Drawing.Point(175, 3);
			this.cancelButton.Name = "cancelButton";
			this.cancelButton.Size = new System.Drawing.Size(75, 23);
			this.cancelButton.TabIndex = 1;
			this.cancelButton.Text = "Cancel";
			this.cancelButton.UseCompatibleTextRendering = true;
			this.cancelButton.UseVisualStyleBackColor = true;
			this.cancelButton.Click += new System.EventHandler(this.CancelButtonClick);
			// 
			// selectionListBox
			// 
			this.selectionListBox.Dock = System.Windows.Forms.DockStyle.Fill;
			this.selectionListBox.IntegralHeight = false;
			this.selectionListBox.Location = new System.Drawing.Point(1, 129);
			this.selectionListBox.Name = "selectionListBox";
			this.selectionListBox.Size = new System.Drawing.Size(262, 180);
			this.selectionListBox.TabIndex = 2;
			this.selectionListBox.UseCompatibleTextRendering = true;
			// 
			// statusLabel
			// 
			this.statusLabel.BackColor = System.Drawing.SystemColors.Control;
			this.statusLabel.Dock = System.Windows.Forms.DockStyle.Top;
			this.statusLabel.Location = new System.Drawing.Point(1, 113);
			this.statusLabel.Name = "statusLabel";
			this.statusLabel.Size = new System.Drawing.Size(262, 16);
			this.statusLabel.TabIndex = 1;
			this.statusLabel.Text = "statusLabel";
			this.statusLabel.UseCompatibleTextRendering = true;
			// 
			// categoryListView
			// 
			this.categoryListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
									columnHeader1});
			this.categoryListView.Dock = System.Windows.Forms.DockStyle.Top;
			this.categoryListView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
			this.categoryListView.Location = new System.Drawing.Point(1, 1);
			this.categoryListView.MultiSelect = false;
			this.categoryListView.Name = "categoryListView";
			this.categoryListView.Size = new System.Drawing.Size(262, 112);
			this.categoryListView.TabIndex = 0;
			this.categoryListView.UseCompatibleStateImageBehavior = false;
			this.categoryListView.View = System.Windows.Forms.View.Details;
			// 
			// CodeGenerationForm
			// 
			this.AcceptButton = this.okButton;
			this.BackColor = System.Drawing.SystemColors.ControlDarkDark;
			this.CancelButton = this.cancelButton;
			this.ClientSize = new System.Drawing.Size(264, 339);
			this.Controls.Add(this.selectionListBox);
			this.Controls.Add(this.statusLabel);
//.........这里部分代码省略.........
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:101,代码来源:CodeGenerationForm.cs

示例9: InitializeComponent

 private void InitializeComponent()
 {
     dgvHash = new DataGridViewEx();
     clmn1_Icon = new DataGridViewImageColumn();
     clmn2_Path = new DataGridViewTextBoxColumn();
     clmn3_Hash = new DataGridViewProgressBarColumn();
     panel1 = new Panel();
     btnClear = new Button();
     btnClose = new Button();
     btnRefresh = new Button();
     chbFullPath = new CheckBox();
     chbClearOnClose = new CheckBox();
     chbShowResult = new CheckBox();
     chbTopMost = new CheckBox();
     cmbHashType = new ComboBox();
     ((ISupportInitialize)dgvHash).BeginInit();
     panel1.SuspendLayout();
     SuspendLayout();
     dgvHash.AllowUserToAddRows = false;
     dgvHash.AllowUserToResizeRows = false;
     dgvHash.BackgroundColor = SystemColors.Window;
     dgvHash.BorderStyle = BorderStyle.None;
     dgvHash.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.None;
     dgvHash.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     dgvHash.Columns.AddRange(new DataGridViewColumn[] { clmn1_Icon, clmn2_Path, clmn3_Hash });
     dgvHash.Dock = DockStyle.Fill;
     dgvHash.GridColor = SystemColors.ControlLight;
     dgvHash.Location = new Point(0, 0);
     dgvHash.ReadOnly = true;
     dgvHash.RowHeadersVisible = false;
     dgvHash.RowTemplate.Height = 0x15;
     dgvHash.Size = new Size(0x1bf, 0x6c);
     dgvHash.MouseDown += dataGridView1_MouseDown;
     dgvHash.KeyDown += dataGridView1_KeyDown;
     dgvHash.CellStateChanged += dataGridView1_CellStateChanged;
     dgvHash.CellMouseDoubleClick += dataGridView1_CellMouseDoubleClick;
     clmn1_Icon.ReadOnly = true;
     clmn1_Icon.Resizable = DataGridViewTriState.False;
     clmn1_Icon.Width = 0x12;
     clmn2_Path.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
     clmn2_Path.HeaderText = QTUtility.TextResourcesDic["FileHashComputer"][0];
     clmn2_Path.MinimumWidth = 80;
     clmn2_Path.ReadOnly = true;
     clmn3_Hash.AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells;
     clmn3_Hash.HeaderText = QTUtility.TextResourcesDic["FileHashComputer"][1];
     clmn3_Hash.MinimumWidth = 200;
     clmn3_Hash.ReadOnly = true;
     panel1.Controls.Add(cmbHashType);
     panel1.Controls.Add(chbTopMost);
     panel1.Controls.Add(chbShowResult);
     panel1.Controls.Add(chbClearOnClose);
     panel1.Controls.Add(chbFullPath);
     panel1.Controls.Add(btnClear);
     panel1.Controls.Add(btnClose);
     panel1.Controls.Add(btnRefresh);
     panel1.Dock = DockStyle.Bottom;
     panel1.Location = new Point(0, 0x6c);
     panel1.Size = new Size(0x1bf, 0x5d);
     panel1.Paint += panel1_Paint;
     btnClose.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
     btnClose.Location = new Point(0x171, 0x43);
     btnClose.Size = new Size(0x4b, 0x17);
     btnClose.Text = QTUtility.TextResourcesDic["FileHashComputer"][2];
     btnClose.UseVisualStyleBackColor = true;
     btnClose.Click += buttonClose_Click;
     btnClear.Anchor = AnchorStyles.Right | AnchorStyles.Bottom;
     btnClear.Location = new Point(0x120, 0x43);
     btnClear.Size = new Size(0x4b, 0x17);
     btnClear.Text = QTUtility.TextResourcesDic["FileHashComputer"][3];
     btnClear.UseVisualStyleBackColor = true;
     btnClear.Click += buttonClear_Click;
     btnRefresh.Location = new Point(0x89, 8);
     btnRefresh.Size = new Size(0x4b, 0x15);
     btnRefresh.Text = QTUtility.TextResourcesDic["FileHashComputer"][4];
     btnRefresh.UseVisualStyleBackColor = true;
     btnRefresh.Click += buttonRefresh_Click;
     cmbHashType.DropDownStyle = ComboBoxStyle.DropDownList;
     cmbHashType.Items.AddRange(new object[] { "MD5", "SHA-1", "SHA-256", "SHA-384", "SHA-512" });
     cmbHashType.Location = new Point(12, 8);
     cmbHashType.Size = new Size(0x79, 0x15);
     chbTopMost.AutoSize = true;
     chbTopMost.Location = new Point(12, 0x43);
     chbTopMost.Size = new Size(0x4b, 0x17);
     chbTopMost.Text = QTUtility.TextResourcesDic["FileHashComputer"][5];
     chbTopMost.UseVisualStyleBackColor = true;
     chbTopMost.CheckedChanged += checkBoxTopMost_CheckedChanged;
     chbShowResult.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
     chbShowResult.AutoSize = true;
     chbShowResult.Location = new Point(0xd7, 0x29);
     chbShowResult.Size = new Size(0x5e, 0x11);
     chbShowResult.Text = QTUtility.TextResourcesDic["FileHashComputer"][6];
     chbShowResult.UseVisualStyleBackColor = true;
     chbClearOnClose.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
     chbClearOnClose.AutoSize = true;
     chbClearOnClose.Location = new Point(0x60, 0x29);
     chbClearOnClose.Size = new Size(0x5e, 0x11);
     chbClearOnClose.Text = QTUtility.TextResourcesDic["FileHashComputer"][7];
     chbClearOnClose.UseVisualStyleBackColor = true;
     chbFullPath.Anchor = AnchorStyles.Left | AnchorStyles.Bottom;
     chbFullPath.AutoSize = true;
//.........这里部分代码省略.........
开发者ID:svn2github,项目名称:QTTabBar,代码行数:101,代码来源:FileHashComputerForm.cs

示例10: InitializeComponent

 private void InitializeComponent()
 {
     label1 = new Label();
     Cancel = new Button();
     OK = new Button();
     LoadXml = new Button();
     dataGrid1 = new DataGrid();
     panelTopMain = new Panel();
     panelBottomMain = new Panel();
     panelTopMain.SuspendLayout();
     panelBottomMain.SuspendLayout();
     base.SuspendLayout();
     label1.Font = new Font("Microsoft Sans Serif", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
     label1.Location = new Point(0x10, 8);
     label1.Name = "label1";
     label1.Size = new Size(200, 0x18);
     label1.TabIndex = 3;
     label1.Text = "Data Set";
     Cancel.Location = new Point(0xe0, 8);
     Cancel.FlatStyle = FlatStyle.Popup;
     Cancel.Name = "Cancel";
     Cancel.Size = new Size(0x60, 0x18);
     Cancel.TabIndex = 1;
     Cancel.Text = "Cancel";
     Cancel.Click += new EventHandler(Cancel_Click);
     OK.Location = new Point(0x148, 8);
     OK.FlatStyle = FlatStyle.Popup;
     OK.Name = "OK";
     OK.Size = new Size(0x60, 0x18);
     OK.TabIndex = 1;
     OK.Text = "OK";
     OK.Click += new EventHandler(OK_Click);
     LoadXml.Location = new Point(0x1b0, 8);
     LoadXml.FlatStyle = FlatStyle.Popup;
     LoadXml.Name = "LoadXml";
     LoadXml.Size = new Size(0x60, 0x18);
     LoadXml.TabIndex = 1;
     LoadXml.Text = "Load XML...";
     LoadXml.Click += new EventHandler(LoadXml_Click);
     dataGrid1.CaptionVisible = true;
     dataGrid1.DataMember = "";
     dataGrid1.Name = "dataGrid1";
     dataGrid1.Dock = DockStyle.Fill;
     dataGrid1.TabIndex = 4;
     dataGrid1.Navigate += new NavigateEventHandler(dataGrid1_Navigate);
     panelTopMain.BorderStyle = BorderStyle.None;
     panelTopMain.Controls.AddRange(new Control[] {label1, Cancel, OK, LoadXml});
     panelTopMain.Dock = DockStyle.Top;
     panelTopMain.Name = "panelTopMain";
     panelTopMain.Size = new Size(0, 50);
     panelTopMain.TabIndex = 0;
     panelBottomMain.BorderStyle = BorderStyle.None;
     panelBottomMain.Controls.AddRange(new Control[] {dataGrid1});
     panelBottomMain.Dock = DockStyle.Fill;
     panelBottomMain.Location = new Point(0, 50);
     panelBottomMain.Name = "panelBottomMain";
     panelBottomMain.TabIndex = 1;
     panelBottomMain.SizeChanged += new EventHandler(PanelBottomMain_SizeChanged);
     base.AcceptButton = OK;
     base.CancelButton = Cancel;
     AutoScaleBaseSize = new Size(5, 13);
     base.ClientSize = new Size(0x2c0, 0x14d);
     base.Controls.AddRange(new Control[] {panelBottomMain, panelTopMain});
     base.Name = "EditForm";
     Text = "Form1";
     base.FormBorderStyle = FormBorderStyle.Fixed3D;
     base.Load += new EventHandler(EditForm_Load);
     dataGrid1.EndInit();
     base.ResumeLayout(false);
 }
开发者ID:irdetocustomercentral,项目名称:WebServiceStudio,代码行数:70,代码来源:DataSetEditor.cs

示例11: createColours

 public void createColours(AvatarData avatar)
 {
     Panel pnlBody = null;
     CustomSelfDrawPanel pnlBodyCSD = null;
     Color[] colorArray = null;
     colorArray = avatar.getBodyColourRange();
     if (!AvatarData.compare(colorArray, this.lastBodyColours))
     {
         pnlBody = this.pnlBody;
         pnlBodyCSD = this.pnlBodyCSD;
         avatar.BodyColour = this.addColours(pnlBodyCSD, colorArray, avatar.BodyColour, 0);
         this.lastBodyColours = colorArray;
     }
     colorArray = avatar.getLegsColourRange();
     if (!AvatarData.compare(colorArray, this.lastLegColours))
     {
         pnlBody = this.pnlLegs;
         pnlBodyCSD = this.pnlLegsCSD;
         avatar.LegsColour = this.addColours(pnlBodyCSD, colorArray, avatar.LegsColour, 1);
         this.lastLegColours = colorArray;
     }
     colorArray = avatar.getFeetColourRange();
     if (!AvatarData.compare(colorArray, this.lastFeetColours))
     {
         pnlBody = this.pnlFeet;
         pnlBodyCSD = this.pnlFeetCSD;
         avatar.FeetColour = this.addColours(pnlBodyCSD, colorArray, avatar.FeetColour, 2);
         this.lastFeetColours = colorArray;
     }
     colorArray = avatar.getTorsoColourRange();
     if (!AvatarData.compare(colorArray, this.lastTorsoColours))
     {
         pnlBody = this.pnlTorso;
         pnlBodyCSD = this.pnlTorsoCSD;
         avatar.TorsoColour = this.addColours(pnlBodyCSD, colorArray, avatar.TorsoColour, 3);
         this.lastTorsoColours = colorArray;
     }
     colorArray = avatar.getTabardColourRange();
     if (!AvatarData.compare(colorArray, this.lastTabardColours))
     {
         pnlBody = this.pnlTabard;
         pnlBodyCSD = this.pnlTabardCSD;
         avatar.TabardColour = this.addColours(pnlBodyCSD, colorArray, avatar.TabardColour, 4);
         this.lastTabardColours = colorArray;
     }
     colorArray = avatar.getArmsColourRange();
     if (!AvatarData.compare(colorArray, this.lastArmsColours))
     {
         pnlBody = this.pnlArms;
         pnlBodyCSD = this.pnlArmsCSD;
         avatar.ArmsColour = this.addColours(pnlBodyCSD, colorArray, avatar.ArmsColour, 5);
         this.lastArmsColours = colorArray;
     }
     colorArray = avatar.getHandsColourRange();
     if (!AvatarData.compare(colorArray, this.lastHandsColours))
     {
         pnlBody = this.pnlHands;
         pnlBodyCSD = this.pnlHandsCSD;
         avatar.HandsColour = this.addColours(pnlBodyCSD, colorArray, avatar.HandsColour, 6);
         this.lastHandsColours = colorArray;
     }
     colorArray = avatar.getShouldersColourRange();
     if (!AvatarData.compare(colorArray, this.lastShouldersColours))
     {
         pnlBody = this.pnlShoulders;
         pnlBodyCSD = this.pnlShouldersCSD;
         avatar.ShouldersColour = this.addColours(pnlBodyCSD, colorArray, avatar.ShouldersColour, 7);
         this.lastShouldersColours = colorArray;
     }
     colorArray = avatar.getHairColourRange();
     if (!AvatarData.compare(colorArray, this.lastHairColours))
     {
         pnlBody = this.pnlHair;
         pnlBodyCSD = this.pnlHairCSD;
         avatar.HairColour = this.addColours(pnlBodyCSD, colorArray, avatar.HairColour, 9);
         this.lastHairColours = colorArray;
     }
     colorArray = avatar.getHeadColourRange();
     if (!AvatarData.compare(colorArray, this.lastHeadColours))
     {
         pnlBody = this.pnlHead;
         pnlBodyCSD = this.pnlHeadCSD;
         pnlBody.SuspendLayout();
         this.removeColours(pnlBody);
         avatar.HeadColour = this.addColours(pnlBodyCSD, colorArray, avatar.HeadColour, 10);
         this.lastHeadColours = colorArray;
         this.resumeLayout(pnlBody);
     }
     colorArray = avatar.getWeaponColourRange();
     if (!AvatarData.compare(colorArray, this.lastWeaponColours))
     {
         pnlBody = this.pnlWeapon;
         pnlBodyCSD = this.pnlWeaponCSD;
         avatar.WeaponColour = this.addColours(pnlBodyCSD, colorArray, avatar.WeaponColour, 11);
         this.lastWeaponColours = colorArray;
     }
 }
开发者ID:Riketta,项目名称:Stronghold-Kingdoms,代码行数:97,代码来源:AvatarEditorPanel.cs

示例12: addColours

 public Color addColours(Panel panel, Color[] colours, Color curColour, int row)
 {
     Panel panel2 = null;
     bool flag = false;
     int num = 0;
     foreach (Color color in colours)
     {
         Panel panel3 = new Panel();
         panel3.SuspendLayout();
         panel3.Size = new Size(12, 12);
         panel3.Location = new Point(280 + (num * 13), 4);
         panel3.Click += new EventHandler(this.colourClicked);
         panel3.BackColor = color;
         panel.Controls.Add(panel3);
         num++;
         if (color == curColour)
         {
             flag = true;
             panel3.BorderStyle = BorderStyle.FixedSingle;
         }
         if (panel2 == null)
         {
             panel2 = panel3;
         }
     }
     if (!flag)
     {
         curColour = colours[0];
         panel2.BorderStyle = BorderStyle.FixedSingle;
     }
     return curColour;
 }
开发者ID:Riketta,项目名称:Stronghold-Kingdoms,代码行数:32,代码来源:AvatarEditorPanel.cs

示例13: InitializeComponent

        /// <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();
            System.Windows.Forms.Panel panelControls;
            System.Windows.Forms.GroupBox filtersGroup;
            System.Windows.Forms.SplitContainer splitContainer;
            System.Windows.Forms.TableLayoutPanel tableLeft;
            System.Windows.Forms.TableLayoutPanel tableRight;
            this.episodesTree = new System.Windows.Forms.TreeView();
            this.episodesCountLabel = new System.Windows.Forms.Label();
            this.refreshButton = new System.Windows.Forms.Button();
            this.hideWholeSeasons = new System.Windows.Forms.CheckBox();
            this.hideLocked = new System.Windows.Forms.CheckBox();
            this.hidePart2 = new System.Windows.Forms.CheckBox();
            this.hideSeason0 = new System.Windows.Forms.CheckBox();
            this.hideUnaired = new System.Windows.Forms.CheckBox();
            this.duplicatesButton = new System.Windows.Forms.Button();
            this.missingButton = new System.Windows.Forms.Button();
            this.toolTip = new System.Windows.Forms.ToolTip(this.components);
            panelControls = new System.Windows.Forms.Panel();
            filtersGroup = new System.Windows.Forms.GroupBox();
            splitContainer = new System.Windows.Forms.SplitContainer();
            tableLeft = new System.Windows.Forms.TableLayoutPanel();
            tableRight = new System.Windows.Forms.TableLayoutPanel();
            panelControls.SuspendLayout();
            filtersGroup.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(splitContainer)).BeginInit();
            splitContainer.Panel1.SuspendLayout();
            splitContainer.Panel2.SuspendLayout();
            splitContainer.SuspendLayout();
            tableLeft.SuspendLayout();
            tableRight.SuspendLayout();
            this.SuspendLayout();
            // 
            // episodesTree
            // 
            this.episodesTree.Dock = System.Windows.Forms.DockStyle.Fill;
            this.episodesTree.Location = new System.Drawing.Point(3, 36);
            this.episodesTree.Name = "episodesTree";
            this.episodesTree.Size = new System.Drawing.Size(232, 497);
            this.episodesTree.TabIndex = 0;
            this.toolTip.SetToolTip(this.episodesTree, "Shows the results of the search");
            // 
            // episodesCountLabel
            // 
            this.episodesCountLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.episodesCountLabel.AutoSize = true;
            this.episodesCountLabel.Location = new System.Drawing.Point(3, 20);
            this.episodesCountLabel.Name = "episodesCountLabel";
            this.episodesCountLabel.Size = new System.Drawing.Size(114, 13);
            this.episodesCountLabel.TabIndex = 1;
            this.episodesCountLabel.Text = "Number of Episodes: 0";
            // 
            // refreshButton
            // 
            this.refreshButton.Anchor = System.Windows.Forms.AnchorStyles.Left;
            this.refreshButton.Location = new System.Drawing.Point(3, 5);
            this.refreshButton.Name = "refreshButton";
            this.refreshButton.Size = new System.Drawing.Size(144, 23);
            this.refreshButton.TabIndex = 1;
            this.refreshButton.Text = "Refresh Episode Counts";
            this.toolTip.SetToolTip(this.refreshButton, "Searches the Output Directories for episodes and updates their file count numbers" +
        ". \r\nThis is used to determine the results of the missing and duplicate episode\r\n" +
        "searches.");
            this.refreshButton.UseVisualStyleBackColor = true;
            this.refreshButton.Click += new System.EventHandler(this.RefreshButtonClick);
            // 
            // panelControls
            // 
            panelControls.Controls.Add(filtersGroup);
            panelControls.Controls.Add(this.duplicatesButton);
            panelControls.Controls.Add(this.missingButton);
            panelControls.Dock = System.Windows.Forms.DockStyle.Fill;
            panelControls.Location = new System.Drawing.Point(0, 33);
            panelControls.Margin = new System.Windows.Forms.Padding(0);
            panelControls.Name = "panelControls";
            panelControls.Size = new System.Drawing.Size(468, 503);
            panelControls.TabIndex = 2;
            // 
            // filtersGroup
            // 
            filtersGroup.Controls.Add(this.hideWholeSeasons);
            filtersGroup.Controls.Add(this.hideLocked);
            filtersGroup.Controls.Add(this.hidePart2);
            filtersGroup.Controls.Add(this.hideSeason0);
            filtersGroup.Controls.Add(this.hideUnaired);
            filtersGroup.Location = new System.Drawing.Point(3, 32);
            filtersGroup.Name = "filtersGroup";
            filtersGroup.Size = new System.Drawing.Size(294, 136);
            filtersGroup.TabIndex = 4;
            filtersGroup.TabStop = false;
            filtersGroup.Text = "Missing Episode Filters";
            // 
            // hideWholeSeasons
            // 
            this.hideWholeSeasons.AutoSize = true;
//.........这里部分代码省略.........
开发者ID:nicolaspierre1990,项目名称:tvsorter,代码行数:101,代码来源:MissingDuplicateEpisodes.Designer.cs

示例14: AddNewTab

        public bool AddNewTab(string tabName, bool startup, MyCommon.TabUsageType tabType, ListElement listInfo = null)
        {
            //重複チェック
            foreach (TabPage tb in ListTab.TabPages)
            {
                if (tb.Text == tabName) return false;
            }

            //新規タブ名チェック
            if (tabName == Properties.Resources.AddNewTabText1) return false;

            //タブタイプ重複チェック
            if (!startup)
            {
                if (tabType == MyCommon.TabUsageType.DirectMessage ||
                   tabType == MyCommon.TabUsageType.Favorites ||
                   tabType == MyCommon.TabUsageType.Home ||
                   tabType == MyCommon.TabUsageType.Mentions ||
                   tabType == MyCommon.TabUsageType.Related)
                {
                    if (_statuses.GetTabByType(tabType) != null) return false;
                }
            }

            TabPage _tabPage = new TabPage();
            DetailsListView _listCustom = new DetailsListView();
            ColumnHeader _colHd1 = new ColumnHeader();  //アイコン
            ColumnHeader _colHd2 = new ColumnHeader();   //ニックネーム
            ColumnHeader _colHd3 = new ColumnHeader();   //本文
            ColumnHeader _colHd4 = new ColumnHeader();   //日付
            ColumnHeader _colHd5 = new ColumnHeader();   //ユーザID
            ColumnHeader _colHd6 = new ColumnHeader();   //未読
            ColumnHeader _colHd7 = new ColumnHeader();   //マーク&プロテクト
            ColumnHeader _colHd8 = new ColumnHeader();   //ソース

            int cnt = ListTab.TabPages.Count;

            ///ToDo:Create and set controls follow tabtypes

            this.SplitContainer1.Panel1.SuspendLayout();
            this.SplitContainer1.Panel2.SuspendLayout();
            this.SplitContainer1.SuspendLayout();
            this.ListTab.SuspendLayout();
            this.SuspendLayout();

            _tabPage.SuspendLayout();

            /// UserTimeline関連
            Label label = null;
            if (tabType == MyCommon.TabUsageType.UserTimeline || tabType == MyCommon.TabUsageType.Lists)
            {
                label = new Label();
                label.Dock = DockStyle.Top;
                label.Name = "labelUser";
                if (tabType == MyCommon.TabUsageType.Lists)
                {
                    label.Text = listInfo.ToString();
                }
                else
                {
                    label.Text = _statuses.Tabs[tabName].User + "'s Timeline";
                }
                label.TextAlign = ContentAlignment.MiddleLeft;
                using (ComboBox tmpComboBox = new ComboBox())
                {
                    label.Height = tmpComboBox.Height;
                }
                _tabPage.Controls.Add(label);
            }

            /// 検索関連の準備
            Panel pnl = null;
            if (tabType == MyCommon.TabUsageType.PublicSearch)
            {
                pnl = new Panel();

                Label lbl = new Label();
                ComboBox cmb = new ComboBox();
                Button btn = new Button();
                ComboBox cmbLang = new ComboBox();

                pnl.SuspendLayout();

                pnl.Controls.Add(cmb);
                pnl.Controls.Add(cmbLang);
                pnl.Controls.Add(btn);
                pnl.Controls.Add(lbl);
                pnl.Name = "panelSearch";
                pnl.Dock = DockStyle.Top;
                pnl.Height = cmb.Height;
                pnl.Enter += SearchControls_Enter;
                pnl.Leave += SearchControls_Leave;

                cmb.Text = "";
                cmb.Anchor = AnchorStyles.Left | AnchorStyles.Right;
                cmb.Dock = DockStyle.Fill;
                cmb.Name = "comboSearch";
                cmb.DropDownStyle = ComboBoxStyle.DropDown;
                cmb.ImeMode = ImeMode.NoControl;
                cmb.TabStop = false;
//.........这里部分代码省略.........
开发者ID:lupeeloveee,项目名称:OpenTween,代码行数:101,代码来源:Tween.cs

示例15: InitializeComponent

    /// <summary>
    /// Required method for Designer support - do not modify
    /// the contents of this method with the code editor.
    /// </summary>
    private void InitializeComponent()
    {
      System.Windows.Forms.Panel _fileAssociations;
      System.Windows.Forms.Panel _container;
      this.myRules = new System.Windows.Forms.Panel();
      this._buttons = new System.Windows.Forms.ToolStrip();
      this.myReset = new System.Windows.Forms.Button();
      _fileAssociations = new System.Windows.Forms.Panel();
      _container = new System.Windows.Forms.Panel();
      _fileAssociations.SuspendLayout();
      _container.SuspendLayout();
      this.SuspendLayout();
      // 
      // _fileAssociations
      // 
      _fileAssociations.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                  | System.Windows.Forms.AnchorStyles.Left)
                  | System.Windows.Forms.AnchorStyles.Right)));
      _fileAssociations.Controls.Add(this.myRules);
      _fileAssociations.Controls.Add(this._buttons);
      _fileAssociations.Location = new System.Drawing.Point(3, 3);
      _fileAssociations.Name = "_fileAssociations";
      _fileAssociations.Size = new System.Drawing.Size(767, 696);
      _fileAssociations.TabIndex = 12;
      // 
      // _rules
      // 
      this.myRules.Dock = System.Windows.Forms.DockStyle.Fill;
      this.myRules.Location = new System.Drawing.Point(0, 25);
      this.myRules.Name = "_rules";
      this.myRules.Size = new System.Drawing.Size(767, 671);
      this.myRules.TabIndex = 1;
      // 
      // _buttons
      // 
      this._buttons.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
      this._buttons.Location = new System.Drawing.Point(0, 0);
      this._buttons.Name = "_buttons";
      this._buttons.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
      this._buttons.Size = new System.Drawing.Size(767, 25);
      this._buttons.TabIndex = 0;
      this._buttons.Text = "_buttons";
      // 
      // _reset
      // 
      this.myReset.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
      this.myReset.Location = new System.Drawing.Point(3, 705);
      this.myReset.Name = "_reset";
      this.myReset.Size = new System.Drawing.Size(94, 23);
      this.myReset.TabIndex = 0;
      this.myReset.Text = "Reset defaults";
      this.myReset.UseVisualStyleBackColor = true;
      this.myReset.Click += new System.EventHandler(this.ResetClick);
      // 
      // _container
      // 
      _container.Controls.Add(this.myReset);
      _container.Controls.Add(_fileAssociations);
      _container.Dock = System.Windows.Forms.DockStyle.Fill;
      _container.Location = new System.Drawing.Point(0, 0);
      _container.Name = "_container";
      _container.Size = new System.Drawing.Size(773, 731);
      _container.TabIndex = 0;
      // 
      // ZenCodingOptionsPage
      // 
      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
      this.Controls.Add(_container);
      this.Name = "ZenCodingOptionsPage";
      this.Size = new System.Drawing.Size(773, 731);
      _fileAssociations.ResumeLayout(false);
      _fileAssociations.PerformLayout();
      _container.ResumeLayout(false);
      this.ResumeLayout(false);

    }
开发者ID:derigel23,项目名称:resharper-zencoding,代码行数:81,代码来源:ZenCodingOptionsPage.Designer.cs


注:本文中的System.Windows.Forms.Panel.SuspendLayout方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。