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


C# TabPage.SuspendLayout方法代码示例

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


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

示例1: InserirDocumento

        public CrystalReportViewer InserirDocumento(ReportClass documento, string texto)
        {
            AguardeDB.Mostrar();

            // Insere documento na lista
            documentos.Add(documento);

            // Insere controles
            CrystalReportViewer novoViewer;
            TabPage novaTab;

            novoViewer = new CrystalReportViewer();
            novaTab = new TabPage();
            tabControl.TabPages.Add(novaTab);
            tabControl.SuspendLayout();
            novaTab.SuspendLayout();
            this.SuspendLayout();
            // 
            // visualizador
            // 
            novoViewer.ActiveViewIndex = -1;
            novoViewer.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)));
            novoViewer.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            novoViewer.EnableDrillDown = false;
            novoViewer.Location = new System.Drawing.Point(0, 0);
            novoViewer.Name = "visualizador";
            novoViewer.SelectionFormula = "";
            novoViewer.ShowCloseButton = false;
            novoViewer.ShowExportButton = false;
            novoViewer.ShowGotoPageButton = false;
            novoViewer.ShowGroupTreeButton = false;
            novoViewer.ShowPrintButton = false;
            novoViewer.ShowRefreshButton = false;
            novoViewer.ShowTextSearchButton = false;
            novoViewer.Size = new System.Drawing.Size(709, 210);
            novoViewer.TabIndex = 0;
            novoViewer.ViewTimeSelectionFormula = "";

            novaTab.Controls.Add(novoViewer);
            novaTab.Location = new System.Drawing.Point(4, 22);
            novaTab.Padding = new System.Windows.Forms.Padding(3);
            novaTab.Size = new System.Drawing.Size(709, 210);
            novaTab.TabIndex = 0;
            novaTab.Text = texto;
            novaTab.UseVisualStyleBackColor = true;
            this.tabControl.ResumeLayout(false);
            novaTab.ResumeLayout(false);
            this.ResumeLayout(false);
            novoViewer.ReportSource = documento;

            AguardeDB.Fechar();

            return novoViewer;
        }
开发者ID:andrepontesmelo,项目名称:imjoias,代码行数:56,代码来源:JanelaImpressão.cs

示例2: PutControls

        public void PutControls(List<IExtension> extensions, OMenuItems menu, TabControl tabControl, int clientId, int contractId)
        {
            if (extensions != null)
            {
                foreach (var extension in extensions)
                {
                    if (extension.MainMenu == menu)
                    {
                        TabPage tabPageExtension = new TabPage();
                        tabPageExtension.SuspendLayout();
                        tabPageExtension.Name = extension.ExtensionName;
                        tabPageExtension.Text = extension.ExtensionName;
                        tabPageExtension.UseVisualStyleBackColor = true;
                        extension.ClientId = clientId;
                        extension.ContractId = contractId;

                        UserControl control = (UserControl)extension;
                        control.Dock = DockStyle.Fill;
                        tabPageExtension.Controls.Add(control);
                        tabPageExtension.ResumeLayout(false);
                        tabControl.TabPages.Add(tabPageExtension);
                    }
                }
            }
        }
开发者ID:Ramazanov,项目名称:FomsNet,代码行数:25,代码来源:Extensions.cs

示例3: CollectorsForm2

        protected CollectorsForm2(Graph graph, bool hint)
            : base()
        {
            InitializeComponent();

            var items = MainMenuStrip.Items;
            ((ToolStripMenuItem)items["FileMenu"]).DropDownItems.Add(distractFromCurrentToolStripMenuItem);

            this.graph = graph;

            preciseSpectrumDisplayed = hint;
            setTitles();
            string prefix = (graph.DisplayingMode == Graph.Displaying.Diff) ? DIFF_TITLE : "";

            {
                int count = graph.Collectors.Count;
                graphs = new ZedGraphControlPlus[count];
                minX = new ushort[count];
                maxX = new ushort[count];
                setXScaleLimits();
            }

            SuspendLayout();
            tabControl.SuspendLayout();
            for (int i = 0; i < graph.Collectors.Count; ++i) {
                var collector = graph.Collectors[i];
                if (DisableTabPage(collector)) {
                    graphs[i] = null;
                    continue;
                }
                var tabPage = new TabPage(prefix + i + modeText) { UseVisualStyleBackColor = true };
                tabPage.SuspendLayout();
                tabControl.Controls.Add(tabPage);
                {
                    var zgc = new ZedGraphControlPlus() { ScrollMaxX = maxX[i], ScrollMinX = minX[i], Tag = (byte)(i + 1) };
                    zgc.PointValueEvent += ZedGraphControlPlus_PointValueEvent;
                    zgc.ContextMenuBuilder += ZedGraphControlPlus_ContextMenuBuilder;
                    tabPage.Controls.Add(zgc);
                    graphs[i] = zgc;
                }
                tabPage.ResumeLayout(false);
            }
            tabControl.ResumeLayout(false);
            ResumeLayout(false);
            PerformLayout();

            graph.GraphDataModified += InvokeRefreshGraph;
            graph.AxisModeChanged += InvokeAxisModeChange;
            graph.DisplayModeChanged += InvokeGraphModified;
        }
开发者ID:deathlust,项目名称:flavor-ms,代码行数:50,代码来源:CollectorsForm2.cs

示例4: InitializeComponent

 private void InitializeComponent()
 {
     ComponentResourceManager resources = new ComponentResourceManager(typeof(EnergyHarvesting_Demo_CP));
     tabControl1 = new TabControl();
     tabPage1 = new TabPage();
     groupBox1 = new GroupBox();
     viewRssi1 = new ViewRssi();
     groupBox5 = new GroupBox();
     viewEZMacNetwork1 = new ViewEZMacNetwork();
     tabPage2 = new TabPage();
     viewDataReceiver1 = new ViewDataReceiver();
     tabPage3 = new TabPage();
     groupBoxNodeInfo4 = new GroupBox();
     textBoxLight4 = new TextBox();
     label10 = new Label();
     textBoxTemp4 = new TextBox();
     label11 = new Label();
     label12 = new Label();
     textBoxVbat4 = new TextBox();
     groupBoxNodeInfo3 = new GroupBox();
     textBoxLight3 = new TextBox();
     label7 = new Label();
     textBoxTemp3 = new TextBox();
     label8 = new Label();
     label9 = new Label();
     textBoxVbat3 = new TextBox();
     groupBoxNodeInfo2 = new GroupBox();
     textBoxLight2 = new TextBox();
     label4 = new Label();
     textBoxTemp2 = new TextBox();
     label5 = new Label();
     label6 = new Label();
     textBoxVbat2 = new TextBox();
     groupBoxNodeInfo1 = new GroupBox();
     textBoxLight1 = new TextBox();
     label3 = new Label();
     textBoxTemp1 = new TextBox();
     label2 = new Label();
     label1 = new Label();
     textBoxVbat1 = new TextBox();
     groupBox2 = new GroupBox();
     groupBoxLandscape4 = new GroupBox();
     viewLandscape4 = new ViewLandscape();
     groupBoxLandscape2 = new GroupBox();
     viewLandscape2 = new ViewLandscape();
     groupBoxLandscape3 = new GroupBox();
     viewLandscape3 = new ViewLandscape();
     groupBoxLandscape1 = new GroupBox();
     viewLandscape1 = new ViewLandscape();
     tabControl1.SuspendLayout();
     tabPage1.SuspendLayout();
     groupBox1.SuspendLayout();
     groupBox5.SuspendLayout();
     tabPage2.SuspendLayout();
     tabPage3.SuspendLayout();
     groupBoxNodeInfo4.SuspendLayout();
     groupBoxNodeInfo3.SuspendLayout();
     groupBoxNodeInfo2.SuspendLayout();
     groupBoxNodeInfo1.SuspendLayout();
     groupBox2.SuspendLayout();
     groupBoxLandscape4.SuspendLayout();
     groupBoxLandscape2.SuspendLayout();
     groupBoxLandscape3.SuspendLayout();
     groupBoxLandscape1.SuspendLayout();
     base.SuspendLayout();
     tabControl1.Controls.Add(tabPage1);
     tabControl1.Controls.Add(tabPage2);
     tabControl1.Controls.Add(tabPage3);
     tabControl1.Location = new Point(0x1ec, 6);
     tabControl1.Name = "tabControl1";
     tabControl1.SelectedIndex = 0;
     tabControl1.Size = new Size(430, 0x200);
     tabControl1.TabIndex = 13;
     tabPage1.BackColor = Color.White;
     tabPage1.Controls.Add(groupBox1);
     tabPage1.Controls.Add(groupBox5);
     tabPage1.Location = new Point(4, 0x16);
     tabPage1.Name = "tabPage1";
     tabPage1.Padding = new Padding(3);
     tabPage1.Size = new Size(0x1a6, 0x1e6);
     tabPage1.TabIndex = 0;
     tabPage1.Text = "Logic";
     groupBox1.BackColor = Color.White;
     groupBox1.Controls.Add(viewRssi1);
     groupBox1.Location = new Point(6, 0x143);
     groupBox1.Name = "groupBox1";
     groupBox1.Size = new Size(410, 0x9d);
     groupBox1.TabIndex = 11;
     groupBox1.TabStop = false;
     groupBox1.Text = "RSSI";
     viewRssi1.BackColor = Color.White;
     viewRssi1.Location = new Point(6, 0x13);
     viewRssi1.Name = "viewRssi1";
     viewRssi1.Size = new Size(0x18e, 0x84);
     viewRssi1.TabIndex = 7;
     groupBox5.BackColor = Color.White;
     groupBox5.Controls.Add(viewEZMacNetwork1);
     groupBox5.Location = new Point(6, 6);
     groupBox5.Name = "groupBox5";
     groupBox5.Size = new Size(410, 0x137);
//.........这里部分代码省略.........
开发者ID:x893,项目名称:WDS,代码行数:101,代码来源:EnergyHarvesting_Demo_CP.cs

示例5: InitializeTabs

 private void InitializeTabs(TabPage page, UserControl control)
 {
     page.SuspendLayout();
     try
     {
         page.Controls.Add(control);
     }
     finally
     {
         page.ResumeLayout();
     }
 }
开发者ID:AGluhov,项目名称:PmClient,代码行数:12,代码来源:MainForm.cs

示例6: ExecutionEnded

        void ExecutionEnded()
        {
            bool error = false;
            int AffectedRecords = 0, ReadedRecords = 0, ResultsTables = 0, intaux;
            List<string> ResultQueue = new List<string>();
            List<TabPage> Pages = new List<TabPage>();

            if (CurrentExecutionInfo.HasErrors())//evitar dobles terminos??!!
                return;

            //Instead of cleaning all the tabs, just clean those who arent locked
            //TabHolder.TabPages.Clear();
            if (TabHolder.TabCount > 0)
            {
                int tabCount = TabHolder.TabCount;
                for (int i = tabCount - 1; i >= 0; i--)
                {
                    if(TabHolder.TabPages[i].Name.Contains("_"))
                    {//results tab
                        if(!lockedTabs.Contains(TabHolder.TabPages[i].Name))
                            TabHolder.TabPages.RemoveAt(i);
                    }
                    else
                    {//messages tab
                        TabHolder.TabPages.RemoveAt(i);
                    }
                }
            }

            TabHolder.SuspendLayout();

            #region First we must add the results tab
            if (Executor.Results != null && Executor.Results.Tables != null && Executor.Results.Tables.Count > 0)
            {
                int index = 0;
                foreach (DataTable Table in Executor.Results.Tables)
                {
                    if (Table.TableName.StartsWith("NonQuery", StringComparison.CurrentCultureIgnoreCase))
                    {
                        ResultQueue.Add(String.Format("Affected Records: {0}", Table.Rows[0][0].ToString()));
                        if (int.TryParse(Table.Rows[0][0].ToString(), out intaux))
                            AffectedRecords += intaux;
                    }
                    else
                    {
                        TabPage TableTab = new TabPage();
                        index++;
                        HDesarrollo.Controles.Grid.SmartGrid Grid = new HDesarrollo.Controles.Grid.SmartGrid();
                        Grid.FilterBoxPosition = GridViewExtensions.FilterPosition.Off;
                        Grid.Dock = DockStyle.Fill;
                        TableTab.SuspendLayout();

                        TableTab.Controls.Add(Grid);
                        TableTab.ImageIndex = 0;
                        TableTab.Location = new System.Drawing.Point(4, 29);
                        TableTab.Name = "TTab_" + Guid.NewGuid().ToString(); //"TableTab_" + index.ToString();
                        TableTab.Padding = new System.Windows.Forms.Padding(3);
                        TableTab.Size = new System.Drawing.Size(900, 150);
                        TableTab.TabIndex = 0;

                        if(ResultNaming.Count >= index)
                            TableTab.Text = ResultNaming[index - 1];
                        else
                            TableTab.Text = "Result " + index.ToString();

                        TableTab.UseVisualStyleBackColor = true;
                        TableTab.ResumeLayout(false);

                        Grid.DataSource = Table;

                        if (Table != null)
                            ReadedRecords += Table.Rows.Count;
                        ResultsTables++;

                        Pages.Add(TableTab);
                    }
                }
            }
            #endregion
            #region then we add the data tabs
            TabPage ResultsTab = new TabPage();
            ListView MessageList = new ListView();
            Label LabExecutionTime = new Label();

            ResultsTab.SuspendLayout();
            ColumnHeader MessageColumn1 = new ColumnHeader();
            MessageColumn1.Text = "";
            MessageColumn1.Width = Math.Max(this.Width, 750);
            MessageList.Columns.AddRange(new ColumnHeader[] { MessageColumn1 });
            MessageList.Dock = System.Windows.Forms.DockStyle.Fill;
            MessageList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
            MessageList.LargeImageList = TabIcons;
            MessageList.Location = new System.Drawing.Point(3, 18);
            MessageList.Name = "MessageList";
            MessageList.Size = new System.Drawing.Size(894, 129);
            MessageList.SmallImageList = TabIcons;
            MessageList.TabIndex = 0;
            MessageList.UseCompatibleStateImageBehavior = false;
            MessageList.View = System.Windows.Forms.View.Details;
            MessageList.MouseDoubleClick += DoubleClickedResultItem;
//.........这里部分代码省略.........
开发者ID:GUrbiola,项目名称:Ez_SQL,代码行数:101,代码来源:QueryForm.cs

示例7: InitializeComponent


//.........这里部分代码省略.........
     txbLost = new System.Windows.Forms.TextBox();
     txbPER = new System.Windows.Forms.TextBox();
     txbPackets = new System.Windows.Forms.TextBox();
     pnlRXFIFO = new System.Windows.Forms.Panel();
     dgvRX = new System.Windows.Forms.DataGridView();
     dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     xpdC = new System.Windows.Forms.DataGridViewTextBoxColumn();
     errC = new System.Windows.Forms.DataGridViewTextBoxColumn();
     btnSaveRead = new System.Windows.Forms.Button();
     btnOpenRead = new System.Windows.Forms.Button();
     btnRead = new System.Windows.Forms.Button();
     pnlTXFIFO = new System.Windows.Forms.Panel();
     dgvTX = new System.Windows.Forms.DataGridView();
     numC = new System.Windows.Forms.DataGridViewTextBoxColumn();
     dataC = new System.Windows.Forms.DataGridViewTextBoxColumn();
     btnSaveWrite = new System.Windows.Forms.Button();
     btnOpenWrite = new System.Windows.Forms.Button();
     btnWrite = new System.Windows.Forms.Button();
     tbpDescription = new System.Windows.Forms.TabPage();
     txbDescription = new System.Windows.Forms.RichTextBox();
     chbDisableLogging = new System.Windows.Forms.CheckBox();
     lblTermWin = new System.Windows.Forms.Label();
     btnClearLog = new System.Windows.Forms.Button();
     rtbLogWindow = new System.Windows.Forms.RichTextBox();
     spiStatusBar = new System.Windows.Forms.StatusBar();
     statusBarPanel1 = new System.Windows.Forms.StatusBarPanel();
     sbChipRevPane = new System.Windows.Forms.StatusBarPanel();
     sbDeviceStatePane = new System.Windows.Forms.StatusBarPanel();
     statusBarPanel4 = new StatusBarTest.StatusBarProgressPanel();
     tmrCommon = new System.Windows.Forms.Timer(components);
     ttpMainToolTip = new System.Windows.Forms.ToolTip(components);
     tsrMainToolStrip = new NewWDS.Applications.App_Common.AppToolStrip.ApplicationToolStrip();
     grbRegisterFilter.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(dgvRegisterList)).BeginInit();
     groupBox1.SuspendLayout();
     spcMainContainer.Panel1.SuspendLayout();
     spcMainContainer.Panel2.SuspendLayout();
     spcMainContainer.SuspendLayout();
     grbLog.SuspendLayout();
     tbcMain.SuspendLayout();
     tabPage4.SuspendLayout();
     grbBatch.SuspendLayout();
     pnlBatchMain.SuspendLayout();
     pnlBatch4.SuspendLayout();
     pnlBatch3.SuspendLayout();
     pnlBatch2.SuspendLayout();
     pnlBatch1.SuspendLayout();
     vrbViewBatch.SuspendLayout();
     grbSaveLoad.SuspendLayout();
     grbLoopControl.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(nudLoopLimit)).BeginInit();
     tbpFIFO.SuspendLayout();
     pnlBerPer.SuspendLayout();
     pnlRXFIFO.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(dgvRX)).BeginInit();
     pnlTXFIFO.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(dgvTX)).BeginInit();
     tbpDescription.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(statusBarPanel1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(sbChipRevPane)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(sbDeviceStatePane)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(statusBarPanel4)).BeginInit();
     SuspendLayout();
     //
     // grbRegisterFilter
开发者ID:x893,项目名称:WDS,代码行数:67,代码来源:AppWin_SPITool_PRO.cs

示例8: InitializeComponent

		/// <summary>
		/// This method is required for Windows Forms designer support.
		/// Do not change the method contents inside the source code editor. The Forms designer might
		/// not be able to load this method if it was changed manually.
		/// </summary>
		private void InitializeComponent() {
			panelMetadataFile = new Panel();
			txtOutput = new TextBox();
			tabControlMain = new TabControl();
			cboMetadataFile = new ComboBox();
			pageOutput = new TabPage();
			pageTemplate = new TabPage();
			tabControlMain.SuspendLayout();
			pageOutput.SuspendLayout();
			SuspendLayout();
			// 
			// panelMetadataFile
			// 
			panelMetadataFile.Dock = DockStyle.Fill;
			panelMetadataFile.Location = new Point(0, 21);
			panelMetadataFile.Name = "panelMetadataFile";
			panelMetadataFile.Size = new Size(640, 465);
			panelMetadataFile.TabIndex = 3;
			// 
			// txtOutput
			// 
			txtOutput.BackColor = SystemColors.Window;
			txtOutput.Dock = DockStyle.Fill;
			txtOutput.Font = new Font("Courier New", 9.75F, FontStyle.Regular, GraphicsUnit.Point, 0);
			txtOutput.Location = new Point(0, 0);
			txtOutput.Multiline = true;
			txtOutput.Name = "txtOutput";
			txtOutput.ReadOnly = true;
			txtOutput.ScrollBars = ScrollBars.Both;
			txtOutput.Size = new Size(640, 486);
			txtOutput.TabIndex = 4;
			txtOutput.Text = "";
			txtOutput.WordWrap = false;
			// 
			// tabControlMain
			// 
			tabControlMain.Alignment = TabAlignment.Bottom;
			tabControlMain.Controls.Add(pageTemplate);
			tabControlMain.Controls.Add(pageOutput);
			tabControlMain.Dock = DockStyle.Fill;
			tabControlMain.Location = new Point(0, 0);
			tabControlMain.Name = "tabControlMain";
			tabControlMain.SelectedIndex = 0;
			tabControlMain.Size = new Size(648, 512);
			tabControlMain.TabIndex = 3;
			// 
			// cboMetadataFile
			// 
			cboMetadataFile.Dock = DockStyle.Top;
			cboMetadataFile.DropDownStyle = ComboBoxStyle.DropDownList;
			cboMetadataFile.Location = new Point(0, 0);
			cboMetadataFile.Name = "cboMetadataFile";
			cboMetadataFile.Size = new Size(640, 21);
			cboMetadataFile.TabIndex = 2;
			cboMetadataFile.SelectionChangeCommitted += new EventHandler(cboMetadataFile_SelectionChangeCommitted);
			// 
			// pageOutput
			// 
			pageOutput.Controls.Add(txtOutput);
			pageOutput.Location = new Point(4, 4);
			pageOutput.Name = "pageOutput";
			pageOutput.Size = new Size(640, 486);
			pageOutput.TabIndex = 0;
			pageOutput.Text = "Preview Output";
			// 
			// pageTemplate
			// 
			pageTemplate.Location = new Point(4, 4);
			pageTemplate.Name = "pageTemplate";
			pageTemplate.Size = new Size(640, 486);
			pageTemplate.TabIndex = 3;
			pageTemplate.Text = "Template";
			// 
			// CodeGenerationTemplateEditor
			// 
			Controls.Add(tabControlMain);
			Name = "CodeGenerationTemplateEditor";
			Size = new Size(648, 512);
			tabControlMain.ResumeLayout(false);
			pageOutput.ResumeLayout(false);
			ResumeLayout(false);
		}
开发者ID:BackupTheBerlios,项目名称:ch3etah-svn,代码行数:87,代码来源:CodeGenerationTemplateEditor.cs

示例9: InitializeComponent

		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Windows.Forms.Button m_btnHelp;
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FwProjPropertiesDlg));
			System.Windows.Forms.Button m_btnCancel;
			System.Windows.Forms.TabPage m_tpGeneral;
			SIL.FieldWorks.Common.Controls.LineControl lineControl3;
			SIL.FieldWorks.Common.Controls.LineControl lineControl2;
			SIL.FieldWorks.Common.Controls.LineControl lineControl1;
			System.Windows.Forms.PictureBox m_picLangProgFileBox;
			System.Windows.Forms.Label label3;
			System.Windows.Forms.Label label7;
			System.Windows.Forms.Label label1;
			System.Windows.Forms.Label label5;
			System.Windows.Forms.Label label2;
			System.Windows.Forms.TabPage m_tpWritingSystems;
			System.Windows.Forms.Label label9;
			System.Windows.Forms.Label label8;
			System.Windows.Forms.Label label6;
			System.Windows.Forms.TabPage m_tpExternalLinks;
			System.Windows.Forms.Label label13;
			System.Windows.Forms.Label label12;
			System.Windows.Forms.Label label11;
			System.Windows.Forms.Label label10;
			this.m_tbLocation = new System.Windows.Forms.TextBox();
			this.m_txtProjDescription = new System.Windows.Forms.TextBox();
			this.m_lblProjModifiedDate = new System.Windows.Forms.Label();
			this.m_lblProjCreatedDate = new System.Windows.Forms.Label();
			this.m_lblProjName = new System.Windows.Forms.Label();
			this.m_txtProjName = new System.Windows.Forms.TextBox();
			this.m_btnAnalMoveUp = new System.Windows.Forms.Button();
			this.m_btnAnalMoveDown = new System.Windows.Forms.Button();
			this.m_btnDelAnalWs = new System.Windows.Forms.Button();
			this.m_btnModifyAnalWs = new System.Windows.Forms.Button();
			this.m_btnAddAnalWs = new System.Windows.Forms.Button();
			this.m_btnVernMoveUp = new System.Windows.Forms.Button();
			this.m_btnVernMoveDown = new System.Windows.Forms.Button();
			this.m_btnDelVernWs = new System.Windows.Forms.Button();
			this.m_btnModifyVernWs = new System.Windows.Forms.Button();
			this.m_btnAddVernWs = new System.Windows.Forms.Button();
			this.m_lstAnalWs = new System.Windows.Forms.CheckedListBox();
			this.m_lstVernWs = new System.Windows.Forms.CheckedListBox();
			this.btnLinkedFilesBrowse = new System.Windows.Forms.Button();
			this.txtExtLnkEdit = new System.Windows.Forms.TextBox();
			this.m_btnOK = new System.Windows.Forms.Button();
			this.m_tabControl = new System.Windows.Forms.TabControl();
			this.m_toolTip = new System.Windows.Forms.ToolTip(this.components);
			this.m_cmnuAddWs = new System.Windows.Forms.ContextMenuStrip(this.components);
			this.menuItem2 = new System.Windows.Forms.ToolStripMenuItem();
			this.helpProvider1 = new System.Windows.Forms.HelpProvider();
			this.m_wsMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
			this.m_modifyMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			this.m_hideMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			this.m_mergeMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			this.m_deleteMenuItem = new System.Windows.Forms.ToolStripMenuItem();
			this.linkLbl_useDefaultFolder = new System.Windows.Forms.LinkLabel();
			m_btnHelp = new System.Windows.Forms.Button();
			m_btnCancel = new System.Windows.Forms.Button();
			m_tpGeneral = new System.Windows.Forms.TabPage();
			lineControl3 = new SIL.FieldWorks.Common.Controls.LineControl();
			lineControl2 = new SIL.FieldWorks.Common.Controls.LineControl();
			lineControl1 = new SIL.FieldWorks.Common.Controls.LineControl();
			m_picLangProgFileBox = new System.Windows.Forms.PictureBox();
			label3 = new System.Windows.Forms.Label();
			label7 = new System.Windows.Forms.Label();
			label1 = new System.Windows.Forms.Label();
			label5 = new System.Windows.Forms.Label();
			label2 = new System.Windows.Forms.Label();
			m_tpWritingSystems = new System.Windows.Forms.TabPage();
			label9 = new System.Windows.Forms.Label();
			label8 = new System.Windows.Forms.Label();
			label6 = new System.Windows.Forms.Label();
			m_tpExternalLinks = new System.Windows.Forms.TabPage();
			label13 = new System.Windows.Forms.Label();
			label12 = new System.Windows.Forms.Label();
			label11 = new System.Windows.Forms.Label();
			label10 = new System.Windows.Forms.Label();
			m_tpGeneral.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(m_picLangProgFileBox)).BeginInit();
			m_tpWritingSystems.SuspendLayout();
			m_tpExternalLinks.SuspendLayout();
			this.m_tabControl.SuspendLayout();
			this.m_cmnuAddWs.SuspendLayout();
			this.m_wsMenuStrip.SuspendLayout();
			this.SuspendLayout();
			//
			// m_btnHelp
			//
			resources.ApplyResources(m_btnHelp, "m_btnHelp");
			this.helpProvider1.SetHelpString(m_btnHelp, resources.GetString("m_btnHelp.HelpString"));
			m_btnHelp.Name = "m_btnHelp";
			this.helpProvider1.SetShowHelp(m_btnHelp, ((bool)(resources.GetObject("m_btnHelp.ShowHelp"))));
			m_btnHelp.Click += new System.EventHandler(this.m_btnHelp_Click);
			//
			// m_btnCancel
			//
			resources.ApplyResources(m_btnCancel, "m_btnCancel");
			m_btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.helpProvider1.SetHelpString(m_btnCancel, resources.GetString("m_btnCancel.HelpString"));
//.........这里部分代码省略.........
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:101,代码来源:FwProjPropertiesDlg.cs

示例10: UpdateTableColumnCheckBoxList

        private void UpdateTableColumnCheckBoxList(MetaData md)
        {
            bool visible = false;  // assume that there are no pages

            this.SuspendLayout();
            this.panelTables.SuspendLayout();
            this.tabTableColumns.SuspendLayout();

            this.tabTableColumns.TabPages.Clear();  // clear all of the pages
            this.tabTableColumns.SelectedIndex = 0;

            if (md.Tables != null  &&  md.Tables.Count > 0)
            {
                foreach (MetaData.Table table in md.Tables)
                {
                    Catalog.Table catTable = table.CatTable;
                    if (catTable == null)  // skip ones with no cat info
                        continue;

                    CheckedListBox checkedListTableColumns =
                                                new CheckedListBox();
                    Panel   panelKey          = new Panel();
                    Label   labelTableColumns = new Label();
                    TabPage tabPage           = new TabPage();
                    PrimaryKeyIconList primaryKeyIconList =
                        new PrimaryKeyIconList(checkedListTableColumns.ItemHeight);

                    tabPage.SuspendLayout();

                    // Use the form's checkedListTableColumns as a template
                    // when coding this checkedListTableColumns entries
                    // in order to take advantage of designer settings.
                    checkedListTableColumns.BorderStyle =
                        this.checkedListTableColumns.BorderStyle;
                    checkedListTableColumns.CheckOnClick =
                        this.checkedListTableColumns.CheckOnClick;
                    checkedListTableColumns.Dock =
                        this.checkedListTableColumns.Dock;
                    checkedListTableColumns.Location = new Point(
                        this.panelKey.Width,
                        this.labelTableColumns.Height);
                    checkedListTableColumns.SelectionMode =
                        this.checkedListTableColumns.SelectionMode;
                    checkedListTableColumns.Size =
                        new Size(this.checkedListTableColumns.Size.Width,
                                 this.checkedListTableColumns.Size.Height);
                    checkedListTableColumns.TabIndex =
                        this.checkedListTableColumns.TabIndex;
                    checkedListTableColumns.Name = table.TableName;
                    checkedListTableColumns.SelectedIndexChanged +=
                        new System.EventHandler(
                            this.checkedListTableColumns_SelectedIndexChanged);
                    checkedListTableColumns.Invalidated +=
                        new InvalidateEventHandler(
                            this.checkedListTableColumns_Invalidated);
                    checkedListTableColumns.Tag = table;

                    panelKey.Tag  = primaryKeyIconList;

                    // This code has been disabled because there is no way
                    // to get .NET to fire an event that the CheckedListBox
                    // has been scrolled and its TopIndex has been changed.
                    // We need this information to repaint the "key" icon
                    // in the right location in the PanelKey.  This code
                    // has been left in for the day when capability has
                    // been added. (thoda04)
                    //panelKey.Paint +=
                    //	new System.Windows.Forms.PaintEventHandler(this.panelKey_Paint);

                    foreach (Catalog.Column catColumn in catTable.Columns)
                    {
                        if (catColumn.ColumnName == null)  // safety check
                            continue;

                        bool isChecked = false;

                        // find if this catalog column is in the SELECT collist
                        foreach(MetaData.Column column in md.Columns)
                        {
                            // if right table and right catalog column
                            if (ReferenceEquals(column.Table,     table)  &&
                                ReferenceEquals(column.CatColumn, catColumn))
                            {
                                isChecked = true;  // matched select col w/ cat col
                                break;
                            }
                        }  // end foreach column
                        checkedListTableColumns.Items.Add(
                            catColumn.ColumnName, isChecked);

                        // save indication whether column is a primary key
                        //primaryKeyIconList.Add(catColumn.KeySequence > 0);
                    }  // end foreach catColumn

                    panelKey.BackColor = this.panelKey.BackColor;
                    panelKey.Dock      = this.panelKey.Dock;
                    panelKey.Location  = this.panelKey.Location;
                    panelKey.Size =
                        new Size(this.panelKey.Size.Width,
                                 this.panelKey.Size.Height);
//.........这里部分代码省略.........
开发者ID:JordanChin,项目名称:Ingres,代码行数:101,代码来源:vsquerydesigner.cs

示例11: InitializeComponent

 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     components = new Container();
     ComponentResourceManager resources = new ComponentResourceManager(typeof(frmExplorer));
     mainMenu1 = new MainMenu(components);
     menuItem1 = new MenuItem();
     OpenDBmenu = new MenuItem();
     CreateDBMenu = new MenuItem();
     CheckIntegrity = new MenuItem();
     menuItem3 = new MenuItem();
     ExitAppMenu = new MenuItem();
     menuItem2 = new MenuItem();
     AddAreaMenu = new MenuItem();
     objExecuteSQL = new MenuItem();
     objOpenTableSQL = new MenuItem();
     objRenameTableSQL = new MenuItem();
     objAddColumnSQL = new MenuItem();
     objRemoveColumnSQL = new MenuItem();
     objDeleteRowSQL = new MenuItem();
     objCreateTableSQL = new MenuItem();
     objDeleteTableSQL = new MenuItem();
     TreeViewContextMenu = new ContextMenu();
     TreeViewTablesMenu = new ContextMenu();
     toolBar1 = new ToolBar();
     OpenDatabase = new ToolBarButton();
     IntegrityCheck = new ToolBarButton();
     Separator = new ToolBarButton();
     ExecuteSQL = new ToolBarButton();
     ToolBarImages = new ImageList(components);
     sqlStatementTextBox = new FastColoredTextBox();
     statusStrip1 = new StatusStrip();
     StatusStripLog = new ToolStripStatusLabel();
     splitContainer1 = new SplitContainer();
     splitContainer2 = new SplitContainer();
     SQLAreaTabControl = new TabControlEx();
     tabPage1 = new TabPage();
     silverMonkeyFCTB1 = new SilverMonkeyFCTB();
     SqlResultsListView = new ListView_NoFlicker();
     tabControl1 = new TabControl();
     tabPage2 = new TabPage();
     tabPage3 = new TabPage();
     DatabaseTreeView = new TreeView();
     ((ISupportInitialize)(sqlStatementTextBox)).BeginInit();
     statusStrip1.SuspendLayout();
     ((ISupportInitialize)(splitContainer1)).BeginInit();
     splitContainer1.Panel1.SuspendLayout();
     splitContainer1.Panel2.SuspendLayout();
     splitContainer1.SuspendLayout();
     ((ISupportInitialize)(splitContainer2)).BeginInit();
     splitContainer2.Panel1.SuspendLayout();
     splitContainer2.Panel2.SuspendLayout();
     splitContainer2.SuspendLayout();
     SQLAreaTabControl.SuspendLayout();
     tabPage1.SuspendLayout();
     ((ISupportInitialize)(silverMonkeyFCTB1)).BeginInit();
     tabControl1.SuspendLayout();
     tabPage2.SuspendLayout();
     SuspendLayout();
     //
     // mainMenu1
     //
     mainMenu1.MenuItems.AddRange(new MenuItem[] {
     menuItem1,
     menuItem2});
     //
     // menuItem1
     //
     menuItem1.Index = 0;
     menuItem1.MenuItems.AddRange(new MenuItem[] {
     OpenDBmenu,
     CreateDBMenu,
     CheckIntegrity,
     menuItem3,
     ExitAppMenu});
     menuItem1.Text = "File";
     //
     // OpenDBmenu
     //
     OpenDBmenu.Index = 0;
     OpenDBmenu.Text = "Open Database";
     OpenDBmenu.Click += new EventHandler(OpenDBmenu_Click);
     //
     // CreateDBMenu
     //
     CreateDBMenu.Index = 1;
     CreateDBMenu.Text = "Create Database";
     CreateDBMenu.Click += new EventHandler(CreateDBMenu_Click);
     //
     // CheckIntegrity
     //
     CheckIntegrity.Index = 2;
     CheckIntegrity.Text = "Check DB Integrity";
     CheckIntegrity.Click += new EventHandler(CheckIntegrity_Click);
     //
     // menuItem3
     //
//.........这里部分代码省略.........
开发者ID:Gerolkae,项目名称:Silver-Monkey,代码行数:101,代码来源:frmExplorer.cs

示例12: InitializeComponent

 private void InitializeComponent()
 {
     ComponentResourceManager resources = new ComponentResourceManager(typeof(RF_To_USB_Network_Demo_CP));
     tabControl1 = new TabControl();
     tabPage1 = new TabPage();
     groupBox1 = new GroupBox();
     viewRssi1 = new ViewRssi();
     groupBox5 = new GroupBox();
     viewEZMacNetwork1 = new ViewEZMacNetwork();
     tabPage2 = new TabPage();
     viewDataReceiver1 = new ViewDataReceiver();
     groupBox2 = new GroupBox();
     groupBoxNode4 = new GroupBox();
     viewProgressPot4 = new ViewProgressValue();
     viewProgressTemp4 = new ViewProgressValue();
     groupBoxNode3 = new GroupBox();
     viewProgressPot3 = new ViewProgressValue();
     viewProgressTemp3 = new ViewProgressValue();
     groupBoxNode2 = new GroupBox();
     viewProgressPot2 = new ViewProgressValue();
     viewProgressTemp2 = new ViewProgressValue();
     groupBoxNode1 = new GroupBox();
     viewProgressPot1 = new ViewProgressValue();
     viewProgressTemp1 = new ViewProgressValue();
     tabControl1.SuspendLayout();
     tabPage1.SuspendLayout();
     groupBox1.SuspendLayout();
     groupBox5.SuspendLayout();
     tabPage2.SuspendLayout();
     groupBox2.SuspendLayout();
     groupBoxNode4.SuspendLayout();
     groupBoxNode3.SuspendLayout();
     groupBoxNode2.SuspendLayout();
     groupBoxNode1.SuspendLayout();
     base.SuspendLayout();
     tabControl1.Controls.Add(tabPage1);
     tabControl1.Controls.Add(tabPage2);
     tabControl1.Location = new Point(0x1ec, 6);
     tabControl1.Name = "tabControl1";
     tabControl1.SelectedIndex = 0;
     tabControl1.Size = new Size(430, 0x200);
     tabControl1.TabIndex = 13;
     tabPage1.BackColor = Color.White;
     tabPage1.Controls.Add(groupBox1);
     tabPage1.Controls.Add(groupBox5);
     tabPage1.Location = new Point(4, 0x16);
     tabPage1.Name = "tabPage1";
     tabPage1.Padding = new Padding(3);
     tabPage1.Size = new Size(0x1a6, 0x1e6);
     tabPage1.TabIndex = 0;
     tabPage1.Text = "Logic";
     groupBox1.BackColor = Color.White;
     groupBox1.Controls.Add(viewRssi1);
     groupBox1.Location = new Point(6, 0x143);
     groupBox1.Name = "groupBox1";
     groupBox1.Size = new Size(410, 0x9d);
     groupBox1.TabIndex = 11;
     groupBox1.TabStop = false;
     groupBox1.Text = "RSSI";
     viewRssi1.BackColor = Color.White;
     viewRssi1.Location = new Point(6, 0x13);
     viewRssi1.Name = "viewRssi1";
     viewRssi1.Size = new Size(0x18e, 0x84);
     viewRssi1.TabIndex = 7;
     groupBox5.BackColor = Color.White;
     groupBox5.Controls.Add(viewEZMacNetwork1);
     groupBox5.Location = new Point(6, 6);
     groupBox5.Name = "groupBox5";
     groupBox5.Size = new Size(410, 0x137);
     groupBox5.TabIndex = 3;
     groupBox5.TabStop = false;
     groupBox5.Text = "EZMac(tm) network status";
     viewEZMacNetwork1.BackColor = Color.Transparent;
     viewEZMacNetwork1.BackgroundImageLayout = ImageLayout.None;
     viewEZMacNetwork1.Location = new Point(0x38, 14);
     viewEZMacNetwork1.Name = "viewEZMacNetwork1";
     viewEZMacNetwork1.Size = new Size(0x131, 0x11e);
     viewEZMacNetwork1.TabIndex = 0;
     tabPage2.BackColor = Color.White;
     tabPage2.Controls.Add(viewDataReceiver1);
     tabPage2.Location = new Point(4, 0x16);
     tabPage2.Name = "tabPage2";
     tabPage2.Padding = new Padding(3);
     tabPage2.Size = new Size(0x1a6, 0x1e6);
     tabPage2.TabIndex = 1;
     tabPage2.Text = "Packet";
     viewDataReceiver1.BackColor = Color.White;
     viewDataReceiver1.CustomStringConvertion = true;
     viewDataReceiver1.InsertHeader = true;
     viewDataReceiver1.Location = new Point(6, 7);
     viewDataReceiver1.Name = "viewDataReceiver1";
     viewDataReceiver1.Size = new Size(410, 0x1d9);
     viewDataReceiver1.TabIndex = 1;
     groupBox2.Controls.Add(groupBoxNode4);
     groupBox2.Controls.Add(groupBoxNode3);
     groupBox2.Controls.Add(groupBoxNode2);
     groupBox2.Controls.Add(groupBoxNode1);
     groupBox2.Location = new Point(7, 6);
     groupBox2.Name = "groupBox2";
     groupBox2.Size = new Size(0x1df, 0x200);
//.........这里部分代码省略.........
开发者ID:x893,项目名称:WDS,代码行数:101,代码来源:RF_To_USB_Network_Demo_CP.cs

示例13: InitializeComponent

 private void InitializeComponent()
 {
     var dataGridViewCellStyle13 = new DataGridViewCellStyle();
     var dataGridViewCellStyle14 = new DataGridViewCellStyle();
     var dataGridViewCellStyle15 = new DataGridViewCellStyle();
     var dataGridViewCellStyle16 = new DataGridViewCellStyle();
     var dataGridViewCellStyle17 = new DataGridViewCellStyle();
     var dataGridViewCellStyle18 = new DataGridViewCellStyle();
     var dataGridViewCellStyle19 = new DataGridViewCellStyle();
     var dataGridViewCellStyle20 = new DataGridViewCellStyle();
     var dataGridViewCellStyle21 = new DataGridViewCellStyle();
     var dataGridViewCellStyle22 = new DataGridViewCellStyle();
     var dataGridViewCellStyle23 = new DataGridViewCellStyle();
     var dataGridViewCellStyle24 = new DataGridViewCellStyle();
     TabControl1 = new TabControl();
     TabAll = new TabPage();
     GridAllInvoices = new DataGridView();
     InvoiceType = new DataGridViewTextBoxColumn();
     Number = new DataGridViewTextBoxColumn();
     InvoiceDate = new DataGridViewTextBoxColumn();
     CustomerPurchaseOrderNumber = new DataGridViewTextBoxColumn();
     Customer = new DataGridViewCardLinkColumn();
     PromisedDate = new DataGridViewTextBoxColumn();
     BalanceDueAmount = new DataGridViewTextBoxColumn();
     Status = new DataGridViewTextBoxColumn();
     UID = new DataGridViewTextBoxColumn();
     URI = new DataGridViewTextBoxColumn();
     RowVersion = new DataGridViewTextBoxColumn();
     TabOpen = new TabPage();
     GridOpenInvoices = new DataGridView();
     DataGridViewTextBoxColumn1 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn2 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn3 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn4 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn5 = new DataGridViewCardLinkColumn();
     DataGridViewTextBoxColumn6 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn7 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn8 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn9 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn10 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn11 = new DataGridViewTextBoxColumn();
     TabCredit = new TabPage();
     GridCreditInvoices = new DataGridView();
     DataGridViewTextBoxColumn12 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn13 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn14 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn15 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn16 = new DataGridViewCardLinkColumn();
     DataGridViewTextBoxColumn17 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn18 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn19 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn20 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn21 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn22 = new DataGridViewTextBoxColumn();
     TabClosed = new TabPage();
     GridClosedInvoices = new DataGridView();
     DataGridViewTextBoxColumn23 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn24 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn25 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn26 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn27 = new DataGridViewCardLinkColumn();
     DataGridViewTextBoxColumn28 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn29 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn30 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn31 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn32 = new DataGridViewTextBoxColumn();
     DataGridViewTextBoxColumn33 = new DataGridViewTextBoxColumn();
     BtnNew = new Button();
     Panel1 = new Panel();
     BtnPageRight = new Button();
     TextPage = new TextBox();
     BtnPageLeft = new Button();
     TabControl1.SuspendLayout();
     TabAll.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(GridAllInvoices)).BeginInit();
     TabOpen.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(GridOpenInvoices)).BeginInit();
     TabCredit.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(GridCreditInvoices)).BeginInit();
     TabClosed.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(GridClosedInvoices)).BeginInit();
     Panel1.SuspendLayout();
     SuspendLayout();
     //
     // TabControl1
     //
     TabControl1.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom)
                           | AnchorStyles.Left)
                          | AnchorStyles.Right;
     TabControl1.Controls.Add(TabAll);
     TabControl1.Controls.Add(TabOpen);
     TabControl1.Controls.Add(TabCredit);
     TabControl1.Controls.Add(TabClosed);
     TabControl1.Location = new System.Drawing.Point(12, 12);
     TabControl1.Name = "TabControl1";
     TabControl1.SelectedIndex = 0;
     TabControl1.Size = new System.Drawing.Size(760, 509);
     TabControl1.TabIndex = 0;
     //
     // TabAll
//.........这里部分代码省略.........
开发者ID:kgreed,项目名称:accountright_sample_csharp,代码行数:101,代码来源:InvoiceListForm.designer.cs

示例14: RefreshTabs

    private void RefreshTabs()
    {
      // bugfix for tab removal, RemoveAt fails sometimes
      tabControl1.TabPages.Clear();
      tabControl1.TabPages.Add(tabPage1);

      IList<ChannelGroup> groups = ChannelGroup.ListAll();

      foreach (ChannelGroup group in groups)
      {
        TabPage page = new TabPage(group.GroupName);
        page.SuspendLayout();

        ChannelsInGroupControl channelsInRadioGroupControl = new ChannelsInGroupControl();
        channelsInRadioGroupControl.Location = new System.Drawing.Point(9, 9);
        channelsInRadioGroupControl.Anchor = ((AnchorStyles.Top | AnchorStyles.Bottom)
                                              | AnchorStyles.Left)
                                             | AnchorStyles.Right;

        page.Controls.Add(channelsInRadioGroupControl);

        page.Tag = group;
        page.Location = new System.Drawing.Point(4, 22);
        page.Padding = new Padding(3);
        page.Size = new System.Drawing.Size(457, 374);
        page.UseVisualStyleBackColor = true;
        page.PerformLayout();
        page.ResumeLayout(false);

        tabControl1.TabPages.Add(page);
      }
    }
开发者ID:nio22,项目名称:MediaPortal-1,代码行数:32,代码来源:TVChannels.cs

示例15: InitializeTableByTableViews

        public void InitializeTableByTableViews()
        {
            _viewDataLinks = (from MergeTableCommandBuilder bldr in ViewPresenter.CommandBuilders.Values
                              select new ViewDataLink(bldr)).ToList();

            foreach (ViewDataLink thing in _viewDataLinks)
            {
                TabPage tp = new TabPage(Text = thing.CmdBldr.ClientTableName);
                tp.SuspendLayout();

                thing.ConflictsDataSource = new BindingSource(typeof(MergeObject), (string)null);

                thing.ConflictsDGV = new DataGridView()
                {
                    AllowUserToAddRows = false,
                    AllowUserToDeleteRows = false,
                    AllowUserToOrderColumns = false,
                    AllowUserToResizeColumns = false,
                    AllowUserToResizeRows = false,
                    AutoGenerateColumns = false,
                    Dock = DockStyle.Fill
                };
                thing.ConflictsDGV.DataSource = thing.ConflictsDataSource;

                thing.ConflictsDGV.Columns.AddRange(BuildDGVColumns());

                tp.Controls.Add(thing.ConflictsDGV);

                _TH_conflicts.TabPages.Add(tp);
                tp.ResumeLayout();
            }

            foreach (ViewDataLink thing in _viewDataLinks)
            {
                TabPage tp = new TabPage(Text = thing.CmdBldr.ClientTableName);
                tp.SuspendLayout();

                thing.MatchDataSource = new BindingSource(typeof(MergeObject), (string)null);

                thing.MatchDGV = new DataGridView()
                {
                    AllowUserToAddRows = false,
                    AllowUserToDeleteRows = false,
                    AllowUserToOrderColumns = false,
                    AllowUserToResizeColumns = false,
                    AllowUserToResizeRows = false,
                    AutoGenerateColumns = false,
                    Dock = DockStyle.Fill
                };
                thing.MatchDGV.DataSource = thing.MatchDataSource;
                thing.MatchDGV.Columns.AddRange(BuildDGVColumns());

                tp.Controls.Add(thing.MatchDGV);

                _TH_matches.TabPages.Add(tp);
                tp.ResumeLayout();
            }

            foreach (ViewDataLink thing in _viewDataLinks)
            {
                TabPage tp = new TabPage(Text = thing.CmdBldr.ClientTableName);
                tp.SuspendLayout();

                thing.NewDataSource = new BindingSource(typeof(MergeObject), (string)null);

                thing.NewDGV = new DataGridView()
                {
                    AllowUserToAddRows = false,
                    AllowUserToDeleteRows = false,
                    AllowUserToOrderColumns = false,
                    AllowUserToResizeColumns = false,
                    AllowUserToResizeRows = false,
                    AutoGenerateColumns = false,
                    Dock = DockStyle.Fill,
                    DataSource = thing.NewDataSource
                };
                thing.NewDGV.Columns.AddRange(BuildDGVColumns());

                tp.Controls.Add(thing.NewDGV);

                _TH_additions.TabPages.Add(tp);
                tp.ResumeLayout();
            }

            //foreach (ViewDataLink thing in _viewDataLinks)
            //{
            //    TabPage tp = new TabPage(Text = thing.CmdBldr.ClientTableName);
            //    tp.SuspendLayout();

            //    thing.DeletedDataSource = new BindingSource(typeof(MergeObject), (string)null);

            //    thing.DeletedDGV = new DataGridView()
            //    {
            //        AllowUserToAddRows = false,
            //        AllowUserToDeleteRows = false,
            //        AllowUserToOrderColumns = false,
            //        AllowUserToResizeColumns = false,
            //        AllowUserToResizeRows = false,
            //        AutoGenerateColumns = false,
            //        Dock = DockStyle.Fill,
//.........这里部分代码省略.........
开发者ID:FMSC-Measurements,项目名称:CruiseManager,代码行数:101,代码来源:PreMergeReportView.cs


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