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


C# TabControl.ResumeLayout方法代码示例

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


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

示例1: InitializeComponent


//.........这里部分代码省略.........
     silverMonkeyFCTB1.IsReplaceMode = false;
     silverMonkeyFCTB1.Language = FastColoredTextBoxNS.Language.SQL;
     silverMonkeyFCTB1.LeftBracket = '(';
     silverMonkeyFCTB1.Location = new Point(3, 3);
     silverMonkeyFCTB1.Name = "silverMonkeyFCTB1";
     silverMonkeyFCTB1.Paddings = new Padding(0);
     silverMonkeyFCTB1.RightBracket = ')';
     silverMonkeyFCTB1.SelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(255)))));
     silverMonkeyFCTB1.ServiceColors = ((ServiceColors)(resources.GetObject("silverMonkeyFCTB1.ServiceColors")));
     silverMonkeyFCTB1.Size = new Size(532, 116);
     silverMonkeyFCTB1.TabIndex = 0;
     silverMonkeyFCTB1.Zoom = 100;
     //
     // SqlResultsListView
     //
     SqlResultsListView.Dock = DockStyle.Fill;
     SqlResultsListView.FullRowSelect = true;
     SqlResultsListView.GridLines = true;
     SqlResultsListView.LabelEdit = true;
     SqlResultsListView.LargeImageList = ToolBarImages;
     SqlResultsListView.Location = new Point(0, 0);
     SqlResultsListView.Name = "SqlResultsListView";
     SqlResultsListView.Size = new Size(556, 171);
     SqlResultsListView.TabIndex = 0;
     SqlResultsListView.UseCompatibleStateImageBehavior = false;
     SqlResultsListView.View = View.Details;
     //
     // tabControl1
     //
     tabControl1.Controls.Add(tabPage2);
     tabControl1.Controls.Add(tabPage3);
     tabControl1.Dock = DockStyle.Fill;
     tabControl1.Location = new Point(0, 0);
     tabControl1.Name = "tabControl1";
     tabControl1.SelectedIndex = 0;
     tabControl1.Size = new Size(280, 333);
     tabControl1.TabIndex = 1;
     //
     // tabPage2
     //
     tabPage2.Controls.Add(DatabaseTreeView);
     tabPage2.Location = new Point(4, 22);
     tabPage2.Name = "tabPage2";
     tabPage2.Padding = new Padding(3);
     tabPage2.Size = new Size(272, 307);
     tabPage2.TabIndex = 0;
     tabPage2.Text = "Database";
     tabPage2.UseVisualStyleBackColor = true;
     //
     // tabPage3
     //
     tabPage3.Location = new Point(4, 22);
     tabPage3.Name = "tabPage3";
     tabPage3.Padding = new Padding(3);
     tabPage3.Size = new Size(272, 307);
     tabPage3.TabIndex = 1;
     tabPage3.Text = "Templates";
     tabPage3.UseVisualStyleBackColor = true;
     //
     // DatabaseTreeView
     //
     DatabaseTreeView.Dock = DockStyle.Fill;
     DatabaseTreeView.Location = new Point(3, 3);
     DatabaseTreeView.Name = "DatabaseTreeView";
     DatabaseTreeView.Size = new Size(266, 301);
     DatabaseTreeView.TabIndex = 1;
     DatabaseTreeView.MouseDown += new MouseEventHandler(DatabaseTreeView_MouseDown);
     DatabaseTreeView.MouseDoubleClick += DatabaseTreeView_MouseDoubleClick;
     DatabaseTreeView.AfterExpand += DatabaseTreeView_AfterExpand;
     //
     // frmExplorer
     //
     AutoScaleBaseSize = new Size(5, 13);
     ClientSize = new Size(840, 383);
     Controls.Add(splitContainer1);
     Controls.Add(statusStrip1);
     Controls.Add(toolBar1);
     Icon = ((Icon)(resources.GetObject("$this.Icon")));
     Menu = mainMenu1;
     Name = "frmExplorer";
     Text = "TSProjects: Data Monkey";
     ((ISupportInitialize)(sqlStatementTextBox)).EndInit();
     statusStrip1.ResumeLayout(false);
     statusStrip1.PerformLayout();
     splitContainer1.Panel1.ResumeLayout(false);
     splitContainer1.Panel2.ResumeLayout(false);
     ((ISupportInitialize)(splitContainer1)).EndInit();
     splitContainer1.ResumeLayout(false);
     splitContainer2.Panel1.ResumeLayout(false);
     splitContainer2.Panel2.ResumeLayout(false);
     ((ISupportInitialize)(splitContainer2)).EndInit();
     splitContainer2.ResumeLayout(false);
     SQLAreaTabControl.ResumeLayout(false);
     tabPage1.ResumeLayout(false);
     ((ISupportInitialize)(silverMonkeyFCTB1)).EndInit();
     tabControl1.ResumeLayout(false);
     tabPage2.ResumeLayout(false);
     ResumeLayout(false);
     PerformLayout();
 }
开发者ID:Gerolkae,项目名称:Silver-Monkey,代码行数:101,代码来源:frmExplorer.cs

示例2: TabControlInsert

		public static void TabControlInsert(TabControl tc, TabPage tp, int index)
		{
			tc.SuspendLayout();
			// temp storage to rearrange tabs
			TabPage[] temp = new TabPage[tc.TabPages.Count+1];

			// copy pages in order and insert new page when needed
			for(int i=0; i<tc.TabPages.Count+1; i++)
			{
				if(i < index) temp[i] = tc.TabPages[i];
				else if(i == index) temp[i] = tp;
				else if(i > index) temp[i] = tc.TabPages[i-1];
			}
			
			// erase all tab pages
			while(tc.TabPages.Count > 0)
				tc.TabPages.RemoveAt(0);

			// add them back with new page inserted
			for(int i=0; i<temp.Length; i++)
				tc.TabPages.Add(temp[i]);

			tc.ResumeLayout();
		}
开发者ID:HosokawaKenchi,项目名称:powersdr-if-stage,代码行数:24,代码来源:common.cs

示例3: CCProjectsViewMgr

        public CCProjectsViewMgr(MainForm form, ImageList large, ImageList small)
            : base()
        {
            mainForm = form;
            this.SuspendLayout();
            largeImageList = large;
            smallImageList = small;


            CCProjectsViewMgrPanel = new System.Windows.Forms.Panel();
            CCProjectsViewMgrPanel.Tag = this;
            Controls.Add(CCProjectsViewMgrPanel);
            CCProjectsViewMgrPanel.Location = new System.Drawing.Point(0, 0);
            CCProjectsViewMgrPanel.Name = "CCProjectsViewMgrPanel";
            CCProjectsViewMgrPanel.BackColor = Color.AliceBlue;

            CCProjectsViewMgrPanel.MouseDoubleClick += new MouseEventHandler(CCProjectsViewMgrPanel_MouseDoubleClick);

            CCProjectsViewMgrPanel.Dock = DockStyle.Fill;

            // project views are added to the tabcontrol so it needs to be created first

            m_tabControl = new TabControl();
            m_tabControl.SuspendLayout();
            m_tabControl.Name = "tabControl";
            m_tabControl.SelectedIndex = 0;
            m_tabControl.TabIndex = 0;
            m_tabControl.MouseUp += new MouseEventHandler(TabControl_MouseUp);
            m_tabControl.MouseClick += new MouseEventHandler(CCProjectsViewMgr_MouseClick);
            m_tabControl.AllowDrop = true;
            m_tabControl.DragEnter += new DragEventHandler(TabControl_DragEnter);
            m_tabControl.DragDrop += new DragEventHandler(TabControl_DragDrop);
            m_tabControl.DragOver += new DragEventHandler(TabControl_DragOver);
            m_tabControl.DragLeave += new EventHandler(m_tabControl_DragLeave);
            m_tabControl.Dock = DockStyle.Fill;
            m_tabControl.ImageList = smallImageList;
            CCProjectsViewMgrPanel.Controls.Add(m_tabControl);

            form.DragEnter += new DragEventHandler(form_DragEnter);

            // create the container of views
            m_projectViews = new List<CCProjectsView>();

            // the 'all' view always has all the projects the user has subscribed to
            m_all = new CCProjectsView(this, "All");
            m_all.IsUserView = false;

            AddView(m_all);


            // the 'broken' view is dynamically updated with any broken projects
            m_broken = new CCProjectsView(this, "Broken");
            m_broken.IsUserView = false;
            m_broken.IsReadOnly = false;
            m_broken.TabPage.ImageIndex = ProjectState.Broken.ImageIndex;
            m_broken.TabPage.TabIndex = 1;

            // we don't add it to make  iterating over 'real' views more easy
            AddView(m_broken);

            this.ResumeLayout(false);
            m_tabControl.ResumeLayout(false);

            form.dummyDockingPanel.Controls.Add(CCProjectsViewMgrPanel);

            #region // menus

            projectContextMenu = new System.Windows.Forms.ContextMenuStrip();

            mnuForce = new System.Windows.Forms.ToolStripMenuItem();
            mnuAbort = new System.Windows.Forms.ToolStripMenuItem();
            mnuStart = new System.Windows.Forms.ToolStripMenuItem();
            mnuStop = new System.Windows.Forms.ToolStripMenuItem();
            mnuWebPage = new System.Windows.Forms.ToolStripMenuItem();
            mnuCancelPending = new System.Windows.Forms.ToolStripMenuItem();
            mnuFixBuild = new System.Windows.Forms.ToolStripMenuItem();
            mnuCopyBuildLabel = new System.Windows.Forms.ToolStripMenuItem();
            mnuSendToNewTab = new System.Windows.Forms.ToolStripMenuItem();
            mnuCreateTabFromPattern = new System.Windows.Forms.ToolStripMenuItem();
            mnuCreateTabFromCategory = new System.Windows.Forms.ToolStripMenuItem();

            projectContextMenu.Items.AddRange(new System.Windows.Forms.ToolStripMenuItem[] 
         {
            mnuForce,
            mnuAbort,
            mnuStart,
            mnuStop,
            mnuWebPage,
            mnuCancelPending,
            mnuFixBuild,
            mnuCopyBuildLabel,
            mnuSendToNewTab,
            mnuCreateTabFromPattern,
            mnuCreateTabFromCategory
         });

            mnuForce.Text = "&Force Build";
            mnuForce.Click += new System.EventHandler(mnuForce_Click);
            mnuAbort.Text = "&Abort Build";
            mnuAbort.Click += new System.EventHandler(mnuAbort_Click);
//.........这里部分代码省略.........
开发者ID:kascomp,项目名称:CruiseControl.NET,代码行数:101,代码来源:ProjectViewMgr.cs

示例4: SuspendLayout


//.........这里部分代码省略.........
     ordenDePeladoToolStripMenuItem});
     controlDeProductosToolStripMenuItem.Name = "controlDeProductosToolStripMenuItem";
     controlDeProductosToolStripMenuItem.Size = new System.Drawing.Size(132, 20);
     controlDeProductosToolStripMenuItem.Text = "Control de productos";
     //
     // nivelMaxMinToolStripMenuItem
     //
     nivelMaxMinToolStripMenuItem.Image = global::Shajobe.Properties.Resources.Control_Inventario;
     nivelMaxMinToolStripMenuItem.Name = "nivelMaxMinToolStripMenuItem";
     nivelMaxMinToolStripMenuItem.Size = new System.Drawing.Size(162, 22);
     nivelMaxMinToolStripMenuItem.Text = "Nivel Max/Min";
     nivelMaxMinToolStripMenuItem.Click += new System.EventHandler(nivelMaxMinToolStripMenuItem_Click);
     //
     // ordenDePeladoToolStripMenuItem
     //
     ordenDePeladoToolStripMenuItem.Image = global::Shajobe.Properties.Resources.Caja;
     ordenDePeladoToolStripMenuItem.Name = "ordenDePeladoToolStripMenuItem";
     ordenDePeladoToolStripMenuItem.Size = new System.Drawing.Size(162, 22);
     ordenDePeladoToolStripMenuItem.Text = "Orden de pelado";
     ordenDePeladoToolStripMenuItem.Click += new System.EventHandler(ordenDePeladoToolStripMenuItem_Click);
     //
     // ayudaToolStripMenuItem
     //
     ayudaToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
     acercadeToolStripMenuItem});
     ayudaToolStripMenuItem.Name = "ayudaToolStripMenuItem";
     ayudaToolStripMenuItem.Size = new System.Drawing.Size(53, 20);
     ayudaToolStripMenuItem.Text = "Ay&uda";
     //
     // acercadeToolStripMenuItem
     //
     acercadeToolStripMenuItem.Name = "acercadeToolStripMenuItem";
     acercadeToolStripMenuItem.Size = new System.Drawing.Size(135, 22);
     acercadeToolStripMenuItem.Text = "&Acerca de...";
     //
     // pic_Proveedor
     //
     pic_Proveedor.BackgroundImage = global::Shajobe.Properties.Resources.Inventario;
     pic_Proveedor.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
     pic_Proveedor.Location = new System.Drawing.Point(732, 24);
     pic_Proveedor.Name = "pic_Proveedor";
     pic_Proveedor.Size = new System.Drawing.Size(85, 68);
     pic_Proveedor.TabIndex = 79;
     pic_Proveedor.TabStop = false;
     //
     // errorProvider1
     //
     errorProvider1.ContainerControl = this;
     //
     // Inventario
     //
     AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(237)))), ((int)(((byte)(228)))), ((int)(((byte)(196)))));
     Icon = global::Shajobe.Properties.Resources.Inventario_ICO;
     ClientSize = new System.Drawing.Size(834, 511);
     Controls.Add(pic_Proveedor);
     Controls.Add(menuStrip1);
     Controls.Add(tabControl1);
     MaximizeBox = false;
     MaximumSize = new System.Drawing.Size(840, 535);
     MinimumSize = new System.Drawing.Size(840, 535);
     Name = "Inventario";
     Text = "Inventario";
     Load += new System.EventHandler(Inventario_Load);
     tabControl1.ResumeLayout(false);
     tab_MateriaPrima.ResumeLayout(false);
     groupBox_ListaMateriaPrimam.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(data_MateriaPrima)).EndInit();
     groupBox_MateriaPrimam.ResumeLayout(false);
     groupBox_MateriaPrimam.PerformLayout();
     tab_MateriaPrimaP.ResumeLayout(false);
     groupBox_ListaMateriaPrimap.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(data_MateriaPrimaP)).EndInit();
     groupBox_MateriaPrimap.ResumeLayout(false);
     groupBox_MateriaPrimap.PerformLayout();
     tab_ProductoElaborado.ResumeLayout(false);
     groupBox_ListaProductoElaborado.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(data_ProductoElaborado)).EndInit();
     groupBox_ProductoElaborado.ResumeLayout(false);
     groupBox_ProductoElaborado.PerformLayout();
     tab_ProductoIndirecto.ResumeLayout(false);
     groupBox_ListaProductoIndirecto.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(data_ProductoIndirecto)).EndInit();
     groupBox_ProductoIndirecto.ResumeLayout(false);
     groupBox_ProductoIndirecto.PerformLayout();
     tab_ProductoTerminado.ResumeLayout(false);
     groupBox_ListaProductoTerminado.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(data_ProductoTerminado)).EndInit();
     groupBox_ProductoTerminado.ResumeLayout(false);
     groupBox_ProductoTerminado.PerformLayout();
     menuStrip1.ResumeLayout(false);
     menuStrip1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(pic_Proveedor)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(errorProvider1)).EndInit();
     AnimateWindow(Handle, 350, AnimateWindowFlags.AW_CENTER);
     AnimateWindow(Handle, 350, AnimateWindowFlags.AW_CENTER | AnimateWindowFlags.AW_SLIDE);
     ResumeLayout(false);
     PerformLayout();
 }
开发者ID:josericardo-ac,项目名称:Shajobe,代码行数:101,代码来源:Inventario.cs

示例5: InitializeComponent


//.........这里部分代码省略.........
         applicationsTab.Size = new System.Drawing.Size(534,387);
         applicationsTab.TabIndex = 0;
         applicationsTab.Text = "Applications";
         // 
         // applicationPictureBox
         // 
         applicationPictureBox.AutoSize = true;
         applicationPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
         applicationPictureBox.Image = CredentialsManagerClient.Properties.Resources.Security;
         applicationPictureBox.Location = new System.Drawing.Point(447,15);
         applicationPictureBox.Name = "applicationPictureBox";
         applicationPictureBox.Size = new System.Drawing.Size(79,79);
         applicationPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
         applicationPictureBox.TabIndex = 12;
         applicationPictureBox.TabStop = false;
         // 
         // tabControl
         // 
         tabControl.Controls.Add(applicationsTab);
         tabControl.Controls.Add(usersPage);
         tabControl.Controls.Add(rolesPage);
         tabControl.Controls.Add(passwordsPage);
         tabControl.Controls.Add(servicePage);
         tabControl.Dock = System.Windows.Forms.DockStyle.Fill;
         tabControl.Location = new System.Drawing.Point(0,24);
         tabControl.Name = "tabControl";
         tabControl.SelectedIndex = 0;
         tabControl.Size = new System.Drawing.Size(542,413);
         tabControl.TabIndex = 0;
         // 
         // servicePage
         // 
         servicePage.Controls.Add(addressGroupBox);
         servicePage.Controls.Add(this.m_AddressLabel);
         servicePage.Location = new System.Drawing.Point(4,22);
         servicePage.Name = "servicePage";
         servicePage.Size = new System.Drawing.Size(534,387);
         servicePage.TabIndex = 4;
         servicePage.Text = "Credentials Service";
         // 
         // m_AddressLabel
         // 
         this.m_AddressLabel.AutoSize = true;
         this.m_AddressLabel.Location = new System.Drawing.Point(8,11);
         this.m_AddressLabel.Name = "m_AddressLabel";
         this.m_AddressLabel.Size = new System.Drawing.Size(0,0);
         this.m_AddressLabel.TabIndex = 2;
         // 
         // columnHeader1
         // 
         this.columnHeader1.Text = "";
         this.columnHeader1.Width = 186;
         // 
         // CredentialsManagerForm
         // 
         this.AutoScaleDimensions = new System.Drawing.SizeF(6F,13F);
         this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
         this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
         this.ClientSize = new System.Drawing.Size(542,437);
         this.Controls.Add(tabControl);
         this.Controls.Add(mainMenu);
         this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
         this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
         this.MainMenuStrip = mainMenu;
         this.MaximizeBox = false;
         this.MinimizeBox = false;
         this.Name = "CredentialsManagerForm";
         this.Text = " IDesign ASP.NET Credentials Manager";
         this.Load += new System.EventHandler(this.OnLoad);
         this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.OnClosed);
         this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.OnClosing);
         passwordSetupGroupBox.ResumeLayout(false);
         passwordSetupGroupBox.PerformLayout();
         generatePassorgGroupBox.ResumeLayout(false);
         generatePassorgGroupBox.PerformLayout();
         usersGroupBox.ResumeLayout(false);
         usersGroupBox.PerformLayout();
         rolesGroupBox.ResumeLayout(false);
         rolesGroupBox.PerformLayout();
         usersStatus.ResumeLayout(false);
         usersStatus.PerformLayout();
         usersGoupBox.ResumeLayout(false);
         usersGoupBox.PerformLayout();
         applicationsGroupBox.ResumeLayout(false);
         addressGroupBox.ResumeLayout(false);
         addressGroupBox.PerformLayout();
         mainMenu.ResumeLayout(false);
         passwordsPage.ResumeLayout(false);
         rolesPage.ResumeLayout(false);
         usersPage.ResumeLayout(false);
         applicationsTab.ResumeLayout(false);
         applicationsTab.PerformLayout();
         ((System.ComponentModel.ISupportInitialize)(applicationPictureBox)).EndInit();
         tabControl.ResumeLayout(false);
         servicePage.ResumeLayout(false);
         servicePage.PerformLayout();
         this.ResumeLayout(false);
         this.PerformLayout();

      }
开发者ID:urmilaNominate,项目名称:mERP-framework,代码行数:101,代码来源:CredentialsManager.Designer.cs

示例6: InitializeComponent


//.........这里部分代码省略.........
     changelogLink.TabStop = true;
     changelogLink.Text = "Changelog";
     changelogLink.LinkClicked += new LinkLabelLinkClickedEventHandler(LinkClicked);
     bugLink.AutoSize = true;
     bugLink.Location = new Point(8, 78);
     bugLink.Name = "bugLink";
     bugLink.Size = new Size(61, 13);
     bugLink.TabIndex = 2;
     bugLink.TabStop = true;
     bugLink.Text = "Bug reports";
     bugLink.LinkClicked += new LinkLabelLinkClickedEventHandler(LinkClicked);
     scriptsLink.AutoSize = true;
     scriptsLink.Location = new Point(8, 34);
     scriptsLink.Name = "scriptsLink";
     scriptsLink.Size = new Size(68, 13);
     scriptsLink.TabIndex = 1;
     scriptsLink.TabStop = true;
     scriptsLink.Text = "Scripts forum";
     scriptsLink.LinkClicked += new LinkLabelLinkClickedEventHandler(LinkClicked);
     installLink.AutoSize = true;
     installLink.Location = new Point(8, 12);
     installLink.Name = "installLink";
     installLink.Size = new Size(86, 13);
     installLink.TabIndex = 0;
     installLink.TabStop = true;
     installLink.Text = "Installation guide";
     installLink.LinkClicked += new LinkLabelLinkClickedEventHandler(LinkClicked);
     dotaFindTimer.Interval = 125;
     dotaFindTimer.Tick += new EventHandler(dotaFindTimer_Tick);
     taskbarIcon.Icon = (Icon)componentResourceManager.GetObject("taskbarIcon.Icon");
     taskbarIcon.Text = "Ensage";
     taskbarIcon.Visible = true;
     taskbarIcon.Click += new EventHandler(notifyIcon1_Click);
     injectWorker.WorkerReportsProgress = true;
     injectWorker.DoWork += new DoWorkEventHandler(injectWorker_DoWork);
     injectWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(injectWorker_RunWorkerCompleted);
     pipeWorker.WorkerReportsProgress = true;
     pipeWorker.DoWork += new DoWorkEventHandler(pipeWorker_DoWork);
     pipeWorker.ProgressChanged += new ProgressChangedEventHandler(pipeWorker_ProgressChanged);
     serverWorker.DoWork += new DoWorkEventHandler(serverWorker_DoWork);
     updateTimer.Interval = 60000;
     updateTimer.Tick += new EventHandler(updateTimer_Tick);
     loadWorker.WorkerReportsProgress = true;
     loadWorker.DoWork += new DoWorkEventHandler(loadWorker_DoWork);
     loadWorker.ProgressChanged += new ProgressChangedEventHandler(loadWorker_ProgressChanged);
     DisableVAC.AutoSize = true;
     DisableVAC.Location = new Point(11, 151);
     DisableVAC.Name = "DisableVAC";
     DisableVAC.Size = new Size(103, 17);
     DisableVAC.TabIndex = 9;
     DisableVAC.Text = "disable anti-VAC";
     DisableVAC.UseVisualStyleBackColor = true;
     AutoScaleDimensions = new SizeF(6f, 13f);
     AutoScaleMode = AutoScaleMode.Font;
     ClientSize = new Size(683, 428);
     Controls.Add(tabControl1);
     Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
     MinimumSize = new Size(683, 428);
     Name = "Main";
     Text = "Ensage - Main";
     FormClosing += new FormClosingEventHandler(Main_FormClosing);
     Shown += new EventHandler(Main_Shown);
     Resize += new EventHandler(Main_Resize);
     tabControl1.ResumeLayout(false);
     mainPage.ResumeLayout(false);
     mainPage.PerformLayout();
     groupBox1.ResumeLayout(false);
     chatPage.ResumeLayout(false);
     ircTabControl.ResumeLayout(false);
     tabPage1.ResumeLayout(false);
     splitContainer1.Panel1.ResumeLayout(false);
     splitContainer1.Panel1.PerformLayout();
     splitContainer1.Panel2.ResumeLayout(false);
     splitContainer1.EndInit();
     splitContainer1.ResumeLayout(false);
     tabPage2.ResumeLayout(false);
     splitContainer2.Panel1.ResumeLayout(false);
     splitContainer2.Panel2.ResumeLayout(false);
     splitContainer2.EndInit();
     splitContainer2.ResumeLayout(false);
     splitContainer3.Panel1.ResumeLayout(false);
     splitContainer3.Panel2.ResumeLayout(false);
     splitContainer3.EndInit();
     splitContainer3.ResumeLayout(false);
     flowLayoutPanel1.ResumeLayout(false);
     flowLayoutPanel1.PerformLayout();
     scriptsPage.ResumeLayout(false);
     ((ISupportInitialize)scriptsDataGrid).EndInit();
     ((ISupportInitialize)listBinding).EndInit();
     scriptConfigPage.ResumeLayout(false);
     repository.ResumeLayout(false);
     tableLayoutPanel1.ResumeLayout(false);
     tableLayoutPanel2.ResumeLayout(false);
     tableLayoutPanel3.ResumeLayout(false);
     tableLayoutPanel3.PerformLayout();
     configPage.ResumeLayout(false);
     helpPage.ResumeLayout(false);
     helpPage.PerformLayout();
     ResumeLayout(false);
 }
开发者ID:Moones,项目名称:OpenEnsage,代码行数:101,代码来源:Main.cs

示例7: ImportTabControl

        public void ImportTabControl(TabControl tabControl)
        {
            this.SuspendLayout();
            tabControl.SuspendLayout();

            Pages.Clear();
            foreach(TabPage tabPage in tabControl.TabPages)
            {
                TabNavigatorPage page = new TabNavigatorPage();
                page.Text = tabPage.Text;
                page.Visible = false;
                page.Left = 0;
                page.Top = 0;
                page.Width = tabPage.Width;
                page.Height = tabPage.Height;
                page.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
                page.BackColor = Color.Transparent;
                Controls.Add(page);

                Pages.Add(page);

                /*
                List<Control> ctls = new List<Control>();
                foreach (Control c in tabPage.Controls)
                {
                    ctls.Add(c);
                }
                tabPage.Controls.Clear();

                foreach (Control c in ctls)
                    page.Controls.Add(c);
                */

            for (;tabPage.Controls.Count > 0;)
                {
                    Control ctlChild = tabPage.Controls[0];

                    tabPage.Controls.Remove(ctlChild);
                    page.Controls.Add(ctlChild);
                }

            }
            //tabControl.Parent.Controls.Remove(this);
            tabControl.Visible = false;
            //this.Visible = false;

            ComputeSizes();

            SelectTab(0);

            this.ResumeLayout();
            tabControl.ResumeLayout();
        }
开发者ID:Clodo76,项目名称:airvpn-client,代码行数:53,代码来源:TabNavigator.cs

示例8: InitializeComponent


//.........这里部分代码省略.........
			//
			// m_pnlOddTop
			//
			resources.ApplyResources(this.m_pnlOddTop, "m_pnlOddTop");
			this.m_pnlOddTop.Name = "m_pnlOddTop";
			//
			// m_lblOddPage
			//
			resources.ApplyResources(this.m_lblOddPage, "m_lblOddPage");
			this.m_lblOddPage.Name = "m_lblOddPage";
			//
			// m_lblEvenPage
			//
			resources.ApplyResources(this.m_lblEvenPage, "m_lblEvenPage");
			this.m_lblEvenPage.Name = "m_lblEvenPage";
			//
			// panel3
			//
			panel3.BackColor = System.Drawing.Color.Silver;
			resources.ApplyResources(panel3, "panel3");
			panel3.Name = "panel3";
			//
			// panel4
			//
			this.panel4.BackColor = System.Drawing.Color.Silver;
			resources.ApplyResources(this.panel4, "panel4");
			this.panel4.Name = "panel4";
			//
			// m_grpBoxEdit
			//
			m_grpBoxEdit.Controls.Add(m_btnModify);
			m_grpBoxEdit.Controls.Add(this.m_btnDelete);
			m_grpBoxEdit.Controls.Add(m_btnAdd);
			m_grpBoxEdit.Controls.Add(this.m_lstBoxName);
			resources.ApplyResources(m_grpBoxEdit, "m_grpBoxEdit");
			m_grpBoxEdit.Name = "m_grpBoxEdit";
			m_grpBoxEdit.TabStop = false;
			//
			// m_btnDelete
			//
			resources.ApplyResources(this.m_btnDelete, "m_btnDelete");
			this.m_btnDelete.Name = "m_btnDelete";
			this.m_btnDelete.Click += new System.EventHandler(this.m_btnDelete_Click);
			//
			// m_lstBoxName
			//
			resources.ApplyResources(this.m_lstBoxName, "m_lstBoxName");
			this.m_lstBoxName.Name = "m_lstBoxName";
			this.m_lstBoxName.SelectedIndexChanged += new System.EventHandler(this.m_lstBoxName_SelectedIndexChanged);
			//
			// panel1
			//
			this.panel1.Controls.Add(m_lblDescription);
			this.panel1.Controls.Add(tabControl1);
			this.panel1.Controls.Add(lineControl1);
			this.panel1.Controls.Add(this.m_txtBoxDescription);
			resources.ApplyResources(this.panel1, "panel1");
			this.panel1.Name = "panel1";
			//
			// lineControl1
			//
			lineControl1.BackColor = System.Drawing.Color.Transparent;
			resources.ApplyResources(lineControl1, "lineControl1");
			lineControl1.ForeColor2 = System.Drawing.Color.Transparent;
			lineControl1.LinearGradientMode = System.Drawing.Drawing2D.LinearGradientMode.Horizontal;
			lineControl1.Name = "lineControl1";
			//
			// m_txtBoxDescription
			//
			resources.ApplyResources(this.m_txtBoxDescription, "m_txtBoxDescription");
			this.m_txtBoxDescription.Name = "m_txtBoxDescription";
			this.m_txtBoxDescription.ReadOnly = true;
			//
			// HeaderFooterSetupDlg
			//
			this.AcceptButton = m_btnOk;
			resources.ApplyResources(this, "$this");
			this.CancelButton = m_btnCancel;
			this.Controls.Add(m_grpBoxEdit);
			this.Controls.Add(this.panel1);
			this.Controls.Add(m_btnHelp);
			this.Controls.Add(m_btnCancel);
			this.Controls.Add(m_btnOk);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "HeaderFooterSetupDlg";
			this.ShowInTaskbar = false;
			tabControl1.ResumeLayout(false);
			m_tpFirst.ResumeLayout(false);
			m_pnlFirstPage.ResumeLayout(false);
			m_tpOddEven.ResumeLayout(false);
			this.m_pnlEvenPage.ResumeLayout(false);
			this.m_pnlOddPage.ResumeLayout(false);
			m_grpBoxEdit.ResumeLayout(false);
			this.panel1.ResumeLayout(false);
			this.panel1.PerformLayout();
			this.ResumeLayout(false);

		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:101,代码来源:HeaderFooterSetupDlg.cs

示例9: ShellTabScene

        public ShellTabScene()
        {
            _tabControl = new System.Windows.Forms.TabControl();
            TabPage tabShell = new System.Windows.Forms.TabPage();
            TabPage tabUI = new System.Windows.Forms.TabPage();
            _tabControl.SuspendLayout();

            // 
            // _tabControl1
            // 
            _tabControl.Controls.Add(tabShell);
            _tabControl.Controls.Add(tabUI);            
            _tabControl.SelectedIndex = 0;            
            _tabControl.TabIndex = 0;

            // 
            // tabShell
            // 
            tabShell.Name = "tabShell";
            tabShell.Padding = new System.Windows.Forms.Padding(3);
            tabShell.TabIndex = 0;
            tabShell.Text = "Shell";
            tabShell.UseVisualStyleBackColor = true;
            shell.Dock = DockStyle.Fill;
            tabShell.Controls.Add(shell);

            // 
            // tabUI
            //             
            tabUI.Name = "tabUI";
            tabUI.Padding = new System.Windows.Forms.Padding(3);
            tabUI.TabIndex = 1;
            tabUI.Text = "UI";
            tabUI.UseVisualStyleBackColor = true;
            _tabUI = tabUI;

            _tabControl.ResumeLayout();
        }
开发者ID:catyguan,项目名称:gamedev.platform,代码行数:38,代码来源:ShellScene.cs

示例10: InitializeComponent


//.........这里部分代码省略.........
			// tpException
			// 
			tpException.Controls.Add(txtExceptionDetails);
			tpException.Location = new Point(4, 22);
			tpException.Name = "tpException";
			tpException.Size = new Size(386, 175);
			tpException.TabIndex = 1;
			tpException.Text = "Exception";
			tpException.ToolTipText = "Displays detailed information about the error that occurred";
			// 
			// tpGeneral
			// 
			tpGeneral.Controls.Add(pictureBox);
			tpGeneral.Controls.Add(txtExceptionMessage);
			tpGeneral.Controls.Add(txtExceptionType);
			tpGeneral.Controls.Add(lblExceptionType);
			tpGeneral.Controls.Add(lblExceptionMessage);
			tpGeneral.Controls.Add(lblGeneralMessage);
			tpGeneral.Location = new Point(4, 22);
			tpGeneral.Name = "tpGeneral";
			tpGeneral.Size = new Size(386, 175);
			tpGeneral.TabIndex = 0;
			tpGeneral.Text = "General";
			tpGeneral.ToolTipText = "Displays general information about the error that occurred";
			// 
			// txtExceptionMessage
			// 
			txtExceptionMessage.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom)
			                                   | AnchorStyles.Left)
			                                  | AnchorStyles.Right;
			txtExceptionMessage.Location = new Point(77, 100);
			txtExceptionMessage.Multiline = true;
			txtExceptionMessage.Name = "txtExceptionMessage";
			txtExceptionMessage.ReadOnly = true;
			txtExceptionMessage.Size = new Size(306, 71);
			txtExceptionMessage.TabIndex = 5;
			// 
			// lblExceptionMessage
			// 
			lblExceptionMessage.Location = new Point(15, 100);
			lblExceptionMessage.Name = "lblExceptionMessage";
			lblExceptionMessage.Size = new Size(56, 14);
			lblExceptionMessage.TabIndex = 4;
			lblExceptionMessage.Text = "Message";
			// 
			// lblGeneralMessage
			// 
			lblGeneralMessage.Anchor = (AnchorStyles.Top | AnchorStyles.Left)
			                                | AnchorStyles.Right;
			lblGeneralMessage.Location = new Point(77, 7);
			lblGeneralMessage.Name = "lblGeneralMessage";
			lblGeneralMessage.Size = new Size(306, 60);
			lblGeneralMessage.TabIndex = 1;
			lblGeneralMessage.Text = "An internal exception has occurred within Exception Reporter";
			// 
			// tabControl
			// 
			tabControl.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom)
			                          | AnchorStyles.Left)
			                         | AnchorStyles.Right;
			tabControl.Controls.Add(tpGeneral);
			tabControl.Controls.Add(tpException);
			tabControl.HotTrack = true;
			tabControl.Location = new Point(8, 7);
			tabControl.Name = "tabControl";
			tabControl.SelectedIndex = 0;
			tabControl.ShowToolTips = true;
			tabControl.Size = new Size(394, 201);
			tabControl.TabIndex = 0;
			// 
			// cmdOK
			// 
			cmdOK.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
			cmdOK.ImageAlign = ContentAlignment.MiddleLeft;
			cmdOK.Location = new Point(320, 212);
			cmdOK.Name = "cmdOK";
			cmdOK.Size = new Size(80, 25);
			cmdOK.TabIndex = 7;
			cmdOK.Text = "OK";
			// 
			// InternalExceptionView
			// 
			AutoScaleBaseSize = new Size(5, 13);
			ClientSize = new Size(407, 241);
			Controls.Add(tabControl);
			Controls.Add(cmdOK);
			MaximizeBox = false;
			MinimizeBox = false;
			Name = "InternalExceptionView";
			ShowInTaskbar = false;
			StartPosition = FormStartPosition.CenterParent;
			Text = "Exception Reporter: Problem Occurred";
			((ISupportInitialize)(pictureBox)).EndInit();
			tpException.ResumeLayout(false);
			tpException.PerformLayout();
			tpGeneral.ResumeLayout(false);
			tpGeneral.PerformLayout();
			tabControl.ResumeLayout(false);
			ResumeLayout(false);
		}
开发者ID:TimVelo,项目名称:StackBuilder,代码行数:101,代码来源:InternalExceptionView.cs

示例11: InitializeComponent


//.........这里部分代码省略.........
     viewLandscape4.BackgroundImage = (Image)resources.GetObject("viewLandscape4.BackgroundImage");
     viewLandscape4.BackgroundImageLayout = ImageLayout.Stretch;
     viewLandscape4.Charge = 10;
     viewLandscape4.Image = ViewLandscape.ImageSelection.Midday;
     viewLandscape4.Location = new Point(6, 0x13);
     viewLandscape4.MaximumSize = new Size(0x15f, 0x101);
     viewLandscape4.Name = "viewLandscape4";
     viewLandscape4.Size = new Size(0xd9, 0x9c);
     viewLandscape4.TabIndex = 0x11;
     viewLandscape4.Temperature = "25.0\x00b0C";
     groupBoxLandscape2.Controls.Add(viewLandscape2);
     groupBoxLandscape2.Enabled = false;
     groupBoxLandscape2.Location = new Point(0xf2, 0x42);
     groupBoxLandscape2.Name = "groupBoxLandscape2";
     groupBoxLandscape2.Size = new Size(230, 0xb7);
     groupBoxLandscape2.TabIndex = 0x16;
     groupBoxLandscape2.TabStop = false;
     groupBoxLandscape2.Text = "Node #2";
     viewLandscape2.BackColor = Color.Transparent;
     viewLandscape2.BackgroundImage = (Image)resources.GetObject("viewLandscape2.BackgroundImage");
     viewLandscape2.BackgroundImageLayout = ImageLayout.Stretch;
     viewLandscape2.Charge = 10;
     viewLandscape2.Image = ViewLandscape.ImageSelection.Midday;
     viewLandscape2.Location = new Point(6, 0x13);
     viewLandscape2.MaximumSize = new Size(0x15f, 0x101);
     viewLandscape2.Name = "viewLandscape2";
     viewLandscape2.Size = new Size(0xd9, 0x9c);
     viewLandscape2.TabIndex = 0x11;
     viewLandscape2.Temperature = "25.0\x00b0C";
     groupBoxLandscape3.Controls.Add(viewLandscape3);
     groupBoxLandscape3.Enabled = false;
     groupBoxLandscape3.Location = new Point(6, 0xff);
     groupBoxLandscape3.Name = "groupBoxLandscape3";
     groupBoxLandscape3.Size = new Size(230, 0xb7);
     groupBoxLandscape3.TabIndex = 0x16;
     groupBoxLandscape3.TabStop = false;
     groupBoxLandscape3.Text = "Node #3";
     viewLandscape3.BackColor = Color.Transparent;
     viewLandscape3.BackgroundImage = (Image)resources.GetObject("viewLandscape3.BackgroundImage");
     viewLandscape3.BackgroundImageLayout = ImageLayout.Stretch;
     viewLandscape3.Charge = 10;
     viewLandscape3.Image = ViewLandscape.ImageSelection.Midday;
     viewLandscape3.Location = new Point(6, 0x13);
     viewLandscape3.MaximumSize = new Size(0x15f, 0x101);
     viewLandscape3.Name = "viewLandscape3";
     viewLandscape3.Size = new Size(0xd9, 0x9c);
     viewLandscape3.TabIndex = 0x11;
     viewLandscape3.Temperature = "25.0\x00b0C";
     groupBoxLandscape1.Controls.Add(viewLandscape1);
     groupBoxLandscape1.Enabled = false;
     groupBoxLandscape1.Location = new Point(6, 0x42);
     groupBoxLandscape1.Name = "groupBoxLandscape1";
     groupBoxLandscape1.Size = new Size(230, 0xb7);
     groupBoxLandscape1.TabIndex = 0x15;
     groupBoxLandscape1.TabStop = false;
     groupBoxLandscape1.Text = "Node #1";
     viewLandscape1.BackColor = Color.Transparent;
     viewLandscape1.BackgroundImage = (Image)resources.GetObject("viewLandscape1.BackgroundImage");
     viewLandscape1.BackgroundImageLayout = ImageLayout.Stretch;
     viewLandscape1.Charge = 10;
     viewLandscape1.Image = ViewLandscape.ImageSelection.Midday;
     viewLandscape1.Location = new Point(6, 0x13);
     viewLandscape1.MaximumSize = new Size(0x15f, 0x101);
     viewLandscape1.Name = "viewLandscape1";
     viewLandscape1.Size = new Size(0xd9, 0x9c);
     viewLandscape1.TabIndex = 0x11;
     viewLandscape1.Temperature = "25.0\x00b0C";
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     BackColor = Color.White;
     base.ClientSize = new Size(0x39e, 0x20c);
     base.Controls.Add(groupBox2);
     base.Controls.Add(tabControl1);
     base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     base.Name = "EnergyHarvesting_Demo_CP";
     Text = "Energy Harvesting Demo Application";
     base.Load += new EventHandler(Harvesting_Demo_CP_Load);
     base.Shown += new EventHandler(Harvesting_Demo_CP_Shown);
     base.FormClosing += new FormClosingEventHandler(Harvesting_Demo_CP_FormClosing);
     tabControl1.ResumeLayout(false);
     tabPage1.ResumeLayout(false);
     groupBox1.ResumeLayout(false);
     groupBox5.ResumeLayout(false);
     tabPage2.ResumeLayout(false);
     tabPage3.ResumeLayout(false);
     groupBoxNodeInfo4.ResumeLayout(false);
     groupBoxNodeInfo4.PerformLayout();
     groupBoxNodeInfo3.ResumeLayout(false);
     groupBoxNodeInfo3.PerformLayout();
     groupBoxNodeInfo2.ResumeLayout(false);
     groupBoxNodeInfo2.PerformLayout();
     groupBoxNodeInfo1.ResumeLayout(false);
     groupBoxNodeInfo1.PerformLayout();
     groupBox2.ResumeLayout(false);
     groupBoxLandscape4.ResumeLayout(false);
     groupBoxLandscape2.ResumeLayout(false);
     groupBoxLandscape3.ResumeLayout(false);
     groupBoxLandscape1.ResumeLayout(false);
     base.ResumeLayout(false);
 }
开发者ID:x893,项目名称:WDS,代码行数:101,代码来源:EnergyHarvesting_Demo_CP.cs

示例12: GenerateGB


//.........这里部分代码省略.........
            Column_income_volume,
            Column_income_comment});
            dataGridView_income.MultiSelect = false;
            //
            // button_saveincome
            //
            button_saveincome.Location = new System.Drawing.Point(630, 166);
            button_saveincome.Name = "button_saveincome";
            button_saveincome.Size = new System.Drawing.Size(75, 23);
            button_saveincome.TabIndex = 33;
            button_saveincome.Text = "保存";
            button_saveincome.UseVisualStyleBackColor = true;
            //
            // label26
            //
            label26.AutoSize = true;
            label26.Font = new System.Drawing.Font("SimSun", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            label26.Location = new System.Drawing.Point(18, 25);
            label26.Name = "label26";
            label26.Size = new System.Drawing.Size(84, 12);
            label26.TabIndex = 32;
            label26.Text = "本月收入(万)";
            //
            // numericUpDown_income
            //
            numericUpDown_income.Location = new System.Drawing.Point(20, 40);
            numericUpDown_income.Name = "numericUpDown_income";
            numericUpDown_income.Enabled = false;
            numericUpDown_income.Size = new System.Drawing.Size(87, 21);
            numericUpDown_income.TabIndex = 31;
            numericUpDown_income.TextAlign = HorizontalAlignment.Center;
            numericUpDown_income.InterceptArrowKeys = false;
            numericUpDown_income.Maximum = 100000;
            numericUpDown_income.DecimalPlaces = 2;
            //
            // contextMenuStrip1
            //
            contextMenuStrip1.Items.AddRange(new ToolStripItem[] {
            ToolStripMenuItem_delete});
            contextMenuStrip1.Name = "contextMenuStrip1";
            contextMenuStrip1.Size = new Size(153, 48);
            //
            // ToolStripMenuItem_delete
            //
            ToolStripMenuItem_delete.Name = "ToolStripMenuItem_delete";
            ToolStripMenuItem_delete.Size = new Size(152, 22);
            ToolStripMenuItem_delete.Text = "删除";

            contextMenuStrip1.ResumeLayout(false);
            GB.ResumeLayout(false);
            tabControl_month.ResumeLayout(false);
            tabPage_cash.ResumeLayout(false);
            tabPage_cash.PerformLayout();
            groupbox_cash.ResumeLayout(false);
            groupbox_cash.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(numericUpDown_volume)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(numericUpDown_rate)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(numericUpDown_cash)).EndInit();
            tabPage_invest.ResumeLayout(false);
            tabPage_invest.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(numericUpDown_invest)).EndInit();
            groupBox_invest.ResumeLayout(false);
            groupBox_invest.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(numericUpDown_volumeinvest)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(numericUpDown_rateinvest)).EndInit();
            tabPage_debt.ResumeLayout(false);
            tabPage_debt.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(numericUpDown_debt)).EndInit();
            groupBox_debt.ResumeLayout(false);
            groupBox_debt.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(numericUpDown_volumedebt)).EndInit();
            tabPage_payout.ResumeLayout(false);
            tabPage_payout.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(dataGridView_payout)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(numericUpDown_payout)).EndInit();
            tabPage_income.ResumeLayout(false);
            tabPage_income.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(dataGridView_income)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(numericUpDown_income)).EndInit();
            ResumeLayout(false);

            ToolStripMenuItem_delete.Click += new EventHandler(ToolStripMenuItem_delete_Click);
            dataGridView_payout.CellMouseDown += new DataGridViewCellMouseEventHandler(dataGridView_CellMouseDown);
            dataGridView_income.CellMouseDown += new DataGridViewCellMouseEventHandler(dataGridView_CellMouseDown);

            button_new.Click += new EventHandler(button_new_Click);
            button_save.Click += new EventHandler(button_save_Click);

            listBox_invest.MouseDoubleClick += new MouseEventHandler(listBox_invent_MouseDoubleClick);
            button_stopinvest.Click += new EventHandler(button_stopinvest_Click);
            button_updateinvest.Click += new EventHandler(button_updateinvest_Click);

            listBox_debt.MouseDoubleClick += new MouseEventHandler(listBox_debt_MouseDoubleClick);
            button_newdebt.Click += new EventHandler(button_newdebt_Click);
            button_stopdebt.Click += new EventHandler(button_stopdebt_Click);
            button_updatedebt.Click += new EventHandler(button_updatedebt_Click);

            button_savepayout.Click += new EventHandler(button_savepayout_Click);
            button_saveincome.Click += new EventHandler(button_saveincome_Click);
        }
开发者ID:solunar66,项目名称:ThePool,代码行数:101,代码来源:Main_Form.cs

示例13: selectChannel

        /// <summary>
        /// To handle files
        /// </summary>
        /// <param name="p"></param>
        public selectChannel(string p)
        {
            try
            {
                TabControl streamParameterTabControl = new TabControl();
                int maximumX = 0;
                int maximumY = 0;
                TabPage[] tabStream = new TabPage[Globals.limitPCAP.Keys.Count];
                int pktCnt = 0;
                foreach (int stream in Globals.limitPCAP.Keys)
                {
                    string[] streamFiles = Array.FindAll(Globals.fileDump_list, element => element.Contains(String.Format("{0}_", stream)));
                    List<string> parametersList = new List<string>(streamFiles.ToList());
                    CheckBox[] dataSelect = new CheckBox[streamFiles.Length];
                    System.Windows.Forms.Label[] dataLabels = new System.Windows.Forms.Label[streamFiles.Length];
                    TableLayoutPanel[] dataColumns = new TableLayoutPanel[streamFiles.Length / 20 + 1];
                    FlowLayoutPanel flow = new FlowLayoutPanel();
                    flow.FlowDirection = FlowDirection.LeftToRight;
                    tabStream[pktCnt] = new TabPage();
                    for (int i = 0; i != streamFiles.Length; i++)
                    {
                        string streamString = stream.ToString();
                        var parName = parametersList[i].Substring((streamString.Length + 1) + (parametersList[i].IndexOf(String.Format("{0}_", stream))));
                        parName = parName.Substring(0, parName.LastIndexOf(".dat"));
                        int whichColumn = i / 20;
                        dataLabels[i] = new System.Windows.Forms.Label();
                        dataLabels[i].Name = i.ToString();
                        dataLabels[i].AutoSize = false;
                        dataLabels[i].Text = String.Format("{0}", parName.ToString());
                        dataLabels[i].Font = new Font(dataLabels[i].Font.FontFamily, 8, dataLabels[i].Font.Style);

                        dataLabels[i].Size = dataLabels[i].PreferredSize;
                        dataSelect[i] = new CheckBox();
                        dataSelect[i].Name = String.Format("{0}", parName.ToString());
                        dataSelect[i].AutoSize = false;
                        dataSelect[i].Font = new Font(dataLabels[i].Font.FontFamily, 8, dataLabels[i].Font.Style);
                        //Globals.dataHolders[i].TextAlign = ContentAlignment.BottomLeft;
                        dataSelect[i].Size = dataSelect[i].PreferredSize;

                        if (i % 20 == 0)
                        {
                            dataColumns[whichColumn] = new TableLayoutPanel();
                            dataColumns[whichColumn].ColumnCount = 2;
                            dataColumns[whichColumn].RowCount = 20;
                        }
                        dataColumns[whichColumn].Controls.Add(dataLabels[i]);
                        dataColumns[whichColumn].Controls.Add(dataSelect[i]);
                        dataColumns[whichColumn].Size = dataColumns[whichColumn].PreferredSize;
                        if (dataColumns[whichColumn].Size.Height > maximumY) maximumY = dataColumns[whichColumn].Size.Height;
                        //if (tabStream[pktCnt].Size.Width > maximumX) maximumX = tabStream[pktCnt].Size.Width;
                    }
                    for (int i = 0; i != dataColumns.Length; i++)
                    {
                        flow.Controls.Add(dataColumns[i]);
                    }
                    flow.SuspendLayout();
                    flow.ResumeLayout(false);
                    //tabStream[pktCnt].AutoScroll = true;
                    //tabStream[pktCnt].AutoScrollPosition = new System.Drawing.Point(349, 0);
                    flow.Size = flow.PreferredSize;
                    tabStream[pktCnt].Controls.Add(flow);
                    tabStream[pktCnt].Name = stream.ToString();
                    tabStream[pktCnt].Text = String.Format("ID={0}", stream);
                    tabStream[pktCnt].Size = tabStream[pktCnt].PreferredSize;
                    if (tabStream[pktCnt].Size.Height > maximumY) maximumY = tabStream[pktCnt].Size.Height;
                    if (tabStream[pktCnt].Size.Width > maximumX) maximumX = tabStream[pktCnt].Size.Width;
                    pktCnt++;
                }
                foreach (TabPage stream in tabStream)
                {
                    streamParameterTabControl.Controls.Add(stream);
                }
                streamParameterTabControl.SuspendLayout(); streamParameterTabControl.ResumeLayout(false);
                streamParameterTabControl.Size = new Size(maximumX + 5, maximumY + 15);//streamParameterTabControl.PreferredSize;
                //this.Size = this.PreferredSize;
                FlowLayoutPanel selectionFlow = new FlowLayoutPanel();
                selectionFlow.FlowDirection = FlowDirection.LeftToRight;
                selectionFlow.Controls.Add(streamParameterTabControl);
                //streamParameterTabControl.Dock = DockStyle.Fill;
                Button btnOK = new Button();
                btnOK.Text = "Draw";
                btnOK.Click += new EventHandler(selectChannelClick);
                selectionFlow.Controls.Add(btnOK);
                Button btnAll = new Button();
                btnAll.Text = "All";
                btnAll.Click += new EventHandler(selectAllClick);
                selectionFlow.Controls.Add(btnAll);

                selectionFlow.Size = selectionFlow.PreferredSize;
                selectionFlow.SuspendLayout();
                selectionFlow.ResumeLayout(false);
                this.Controls.Add(selectionFlow);
                this.Size = this.PreferredSize;//new Size(maximumX + 50, maximumY + 45);
                this.Text = "Select Channels to Plot";
                this.SuspendLayout();
                this.ResumeLayout(false);
//.........这里部分代码省略.........
开发者ID:rZeton,项目名称:plot-inet-x,代码行数:101,代码来源:MainWindow.cs

示例14: InitializeComponent


//.........这里部分代码省略.........
            this._menuAbout});
			this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
			this.helpToolStripMenuItem.Size = new System.Drawing.Size(44, 20);
			this.helpToolStripMenuItem.Text = "&Help";
			// 
			// _menuAbout
			// 
			this._menuAbout.Name = "_menuAbout";
			this._menuAbout.Size = new System.Drawing.Size(107, 22);
			this._menuAbout.Text = "&About";
			this._menuAbout.Click += new System.EventHandler(this._menuAbout_Click);
			// 
			// _statusStrip
			// 
			this._statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this._statusProgressBar,
            this._statusLabel,
            this._statusLabel2,
            this._activeConfiguration});
			this._statusStrip.Location = new System.Drawing.Point(0, 624);
			this._statusStrip.Name = "_statusStrip";
			this._statusStrip.Size = new System.Drawing.Size(996, 22);
			this._statusStrip.TabIndex = 15;
			this._statusStrip.Text = "statusStrip1";
			// 
			// _statusProgressBar
			// 
			this._statusProgressBar.Name = "_statusProgressBar";
			this._statusProgressBar.Size = new System.Drawing.Size(100, 16);
			// 
			// _statusLabel
			// 
			this._statusLabel.Name = "_statusLabel";
			this._statusLabel.Size = new System.Drawing.Size(782, 17);
			this._statusLabel.Spring = true;
			this._statusLabel.Text = "Ready";
			this._statusLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// _statusLabel2
			// 
			this._statusLabel2.Name = "_statusLabel2";
			this._statusLabel2.Size = new System.Drawing.Size(84, 17);
			this._statusLabel2.Text = "Configuration:";
			// 
			// _activeConfiguration
			// 
			this._activeConfiguration.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
			this._activeConfiguration.Image = ((System.Drawing.Image)(resources.GetObject("_activeConfiguration.Image")));
			this._activeConfiguration.ImageTransparentColor = System.Drawing.Color.Magenta;
			this._activeConfiguration.Name = "_activeConfiguration";
			this._activeConfiguration.Size = new System.Drawing.Size(13, 20);
			this._activeConfiguration.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this._activeConfiguration_DropDownItemClicked);
			// 
			// MainForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
			this.ClientSize = new System.Drawing.Size(996, 646);
			this.Controls.Add(this._tabcontrol);
			this.Controls.Add(this._toolstripTop);
			this.Controls.Add(this._mainmenu);
			this.Controls.Add(this._statusStrip);
			this.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.MainMenuStrip = this._mainmenu;
			this.MinimumSize = new System.Drawing.Size(500, 300);
			this.Name = "MainForm";
			this.Text = "Deployer";
			this.Load += new System.EventHandler(this.MainForm_Load);
			this.Closed += new System.EventHandler(this.MainForm_Closed);
			this.Closing += new System.ComponentModel.CancelEventHandler(this.MainForm_Closing);
			_bottomtabcontrol.ResumeLayout(false);
			this._queuetab.ResumeLayout(false);
			this._queuetab.PerformLayout();
			this._fileQueueMenu.ResumeLayout(false);
			this._toolstripBottom.ResumeLayout(false);
			this._toolstripBottom.PerformLayout();
			this._logtab.ResumeLayout(false);
			this._logtab.PerformLayout();
			this._tabcontrol.ResumeLayout(false);
			this._filetab.ResumeLayout(false);
			this._splitHorizontal.Panel1.ResumeLayout(false);
			this._splitHorizontal.Panel2.ResumeLayout(false);
			this._splitHorizontal.ResumeLayout(false);
			this._splitVertical.Panel1.ResumeLayout(false);
			this._splitVertical.Panel2.ResumeLayout(false);
			this._splitVertical.ResumeLayout(false);
			this._folderTreeMenu.ResumeLayout(false);
			this._fileListMenu.ResumeLayout(false);
			this._databasetab.ResumeLayout(false);
			this._toolstripTop.ResumeLayout(false);
			this._toolstripTop.PerformLayout();
			this._scanMenu.ResumeLayout(false);
			this._mainmenu.ResumeLayout(false);
			this._mainmenu.PerformLayout();
			this._statusStrip.ResumeLayout(false);
			this._statusStrip.PerformLayout();
			this.ResumeLayout(false);
			this.PerformLayout();

		}
开发者ID:pontusm,项目名称:Deployer,代码行数:101,代码来源:MainForm.Designer.cs

示例15: InitializeComponent


//.........这里部分代码省略.........
     viewProgressTemp3.Maximum = 85.0;
     viewProgressTemp3.Minimum = -40.0;
     viewProgressTemp3.Name = "viewProgressTemp3";
     viewProgressTemp3.Size = new Size(0xda, 0x3e);
     viewProgressTemp3.TabIndex = 0;
     viewProgressTemp3.TextGroup = "Temperature";
     viewProgressTemp3.TextMax = "85 \x00b0C";
     viewProgressTemp3.TextMin = "-40 \x00b0C";
     viewProgressTemp3.TextUnits = "\x00b0C";
     viewProgressTemp3.Value = 25.0;
     groupBoxNode2.Controls.Add(viewProgressPot2);
     groupBoxNode2.Controls.Add(viewProgressTemp2);
     groupBoxNode2.Enabled = false;
     groupBoxNode2.Location = new Point(0xf2, 0x5b);
     groupBoxNode2.Name = "groupBoxNode2";
     groupBoxNode2.Size = new Size(230, 0x9c);
     groupBoxNode2.TabIndex = 0x16;
     groupBoxNode2.TabStop = false;
     groupBoxNode2.Text = "Node #2";
     viewProgressPot2.Image = (Image) resources.GetObject("viewProgressPot2.Image");
     viewProgressPot2.Location = new Point(6, 0x57);
     viewProgressPot2.Maximum = 1000.0;
     viewProgressPot2.Minimum = 0.0;
     viewProgressPot2.Name = "viewProgressPot2";
     viewProgressPot2.Size = new Size(0xda, 0x3e);
     viewProgressPot2.TabIndex = 1;
     viewProgressPot2.TextGroup = "Potentiometer";
     viewProgressPot2.TextMax = "1000";
     viewProgressPot2.TextMin = "0";
     viewProgressPot2.TextUnits = "";
     viewProgressPot2.Value = 500.0;
     viewProgressTemp2.Image = (Image) resources.GetObject("viewProgressTemp2.Image");
     viewProgressTemp2.Location = new Point(6, 0x13);
     viewProgressTemp2.Maximum = 85.0;
     viewProgressTemp2.Minimum = -40.0;
     viewProgressTemp2.Name = "viewProgressTemp2";
     viewProgressTemp2.Size = new Size(0xda, 0x3e);
     viewProgressTemp2.TabIndex = 0;
     viewProgressTemp2.TextGroup = "Temperature";
     viewProgressTemp2.TextMax = "85 \x00b0C";
     viewProgressTemp2.TextMin = "-40 \x00b0C";
     viewProgressTemp2.TextUnits = "\x00b0C";
     viewProgressTemp2.Value = 25.0;
     groupBoxNode1.Controls.Add(viewProgressPot1);
     groupBoxNode1.Controls.Add(viewProgressTemp1);
     groupBoxNode1.Enabled = false;
     groupBoxNode1.Location = new Point(6, 0x5b);
     groupBoxNode1.Name = "groupBoxNode1";
     groupBoxNode1.Size = new Size(230, 0x9c);
     groupBoxNode1.TabIndex = 0x15;
     groupBoxNode1.TabStop = false;
     groupBoxNode1.Text = "Node #1";
     viewProgressPot1.Image = (Image) resources.GetObject("viewProgressPot1.Image");
     viewProgressPot1.Location = new Point(6, 0x57);
     viewProgressPot1.Maximum = 1000.0;
     viewProgressPot1.Minimum = 0.0;
     viewProgressPot1.Name = "viewProgressPot1";
     viewProgressPot1.Size = new Size(0xda, 0x3e);
     viewProgressPot1.TabIndex = 1;
     viewProgressPot1.TextGroup = "Potentiometer";
     viewProgressPot1.TextMax = "1000";
     viewProgressPot1.TextMin = "0";
     viewProgressPot1.TextUnits = "";
     viewProgressPot1.Value = 500.0;
     viewProgressTemp1.Image = (Image) resources.GetObject("viewProgressTemp1.Image");
     viewProgressTemp1.Location = new Point(6, 0x13);
     viewProgressTemp1.Maximum = 85.0;
     viewProgressTemp1.Minimum = -40.0;
     viewProgressTemp1.Name = "viewProgressTemp1";
     viewProgressTemp1.Size = new Size(0xda, 0x3e);
     viewProgressTemp1.TabIndex = 0;
     viewProgressTemp1.TextGroup = "Temperature";
     viewProgressTemp1.TextMax = "85 \x00b0C";
     viewProgressTemp1.TextMin = "-40 \x00b0C";
     viewProgressTemp1.TextUnits = "\x00b0C";
     viewProgressTemp1.Value = 25.0;
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     BackColor = Color.White;
     base.ClientSize = new Size(0x39e, 0x20c);
     base.Controls.Add(groupBox2);
     base.Controls.Add(tabControl1);
     base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     base.Name = "RF_To_USB_Network_Demo_CP";
     Text = "RF to USB Network Demo Application";
     base.Load += new EventHandler(RF_To_USB_Network_Demo_CP_Load);
     base.Shown += new EventHandler(RF_To_USB_Network_Demo_CP_Shown);
     base.FormClosing += new FormClosingEventHandler(RF_To_USB_Network_Demo_CP_FormClosing);
     tabControl1.ResumeLayout(false);
     tabPage1.ResumeLayout(false);
     groupBox1.ResumeLayout(false);
     groupBox5.ResumeLayout(false);
     tabPage2.ResumeLayout(false);
     groupBox2.ResumeLayout(false);
     groupBoxNode4.ResumeLayout(false);
     groupBoxNode3.ResumeLayout(false);
     groupBoxNode2.ResumeLayout(false);
     groupBoxNode1.ResumeLayout(false);
     base.ResumeLayout(false);
 }
开发者ID:x893,项目名称:WDS,代码行数:101,代码来源:RF_To_USB_Network_Demo_CP.cs


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