本文整理汇总了C#中System.Windows.Forms.SplitContainer.EndInit方法的典型用法代码示例。如果您正苦于以下问题:C# SplitContainer.EndInit方法的具体用法?C# SplitContainer.EndInit怎么用?C# SplitContainer.EndInit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.SplitContainer
的用法示例。
在下文中一共展示了SplitContainer.EndInit方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Init
//.........这里部分代码省略.........
// m_menu
m_menu.Location = new System.Drawing.Point(0, 0);
m_menu.Name = "m_menu";
m_menu.TabIndex = 0;
m_menu.Text = "m_menu";
m_menu.Items.Add(fileMenu);
// file
fileMenu.Name = "fileToolStripMenuItem";
fileMenu.Size = new System.Drawing.Size(37, 20);
fileMenu.Text = "File".Localize();
fileMenu.DropDownOpening += new EventHandler(fileMenu_DropDownOpening);
fileMenu.DropDownItems.AddRange(new ToolStripItem[]
{
newMenu,
openMenu,
m_openFolderMenu,
m_saveMenu,
m_saveAsMenu,
exitMenu
});
// new
newMenu.Name = "newToolStripMenuItem";
newMenu.ShortcutKeys = Keys.Control | Keys.N;
newMenu.Text = "New".Localize();
newMenu.Click += NewToolStripMenuItem_Click;
//open
openMenu.Name = "openToolStripMenuItem";
openMenu.ShortcutKeys = Keys.Control | Keys.O;
openMenu.Text = "Open...".Localize();
openMenu.Click += OpenToolStripMenuItem_Click;
// open containing folder
m_openFolderMenu.Name = "OpenFolderMenu";
m_openFolderMenu.Text = "Open Containing Folder".Localize();
m_openFolderMenu.Click += new EventHandler(OpenFolderMenu_Click);
//save
m_saveMenu.Name = "saveToolStripMenuItem";
m_saveMenu.ShortcutKeys = Keys.Control | Keys.S;
m_saveMenu.Text = "Save".Localize();
m_saveMenu.Click += SaveToolStripMenuItem_Click;
// save as
m_saveAsMenu.Name = "saveAsToolStripMenuItem";
m_saveAsMenu.Text = "Save As...".Localize();
m_saveAsMenu.Click += SaveAsToolStripMenuItem_Click;
// exit
exitMenu.Name = "exitToolStripMenuItem";
exitMenu.Text = "Exit".Localize();
exitMenu.Click += ExitToolStripMenuItem_Click;
// tree control
m_treeControl.Dock = DockStyle.Fill;
m_treeControl.Name = "m_treeControl";
m_treeControl.TabIndex = 1;
m_treeControl.Width = 150;
m_treeControl.ShowRoot = false;
m_treeControl.AllowDrop = false;
m_treeControl.SelectionMode = SelectionMode.One;
m_treeControlAdapter = new TreeControlAdapter(m_treeControl);
// propertyGrid1
m_PropertyGrid.Dock = DockStyle.Fill;
m_PropertyGrid.Name = "propertyGrid1";
m_PropertyGrid.TabIndex = 3;
m_PropertyGrid.PropertySorting = PropertySorting.None;
// splitter
splitter.Dock = DockStyle.Fill;
splitter.Name = "splitContainer1";
splitter.Panel1.Controls.Add(m_treeControl);
splitter.Panel2.Controls.Add(m_PropertyGrid);
splitter.SplitterDistance = 100;
splitter.TabIndex = 1;
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new System.Drawing.Size(600, 400);
Controls.Add(splitter);
Controls.Add(m_menu);
MainMenuStrip = m_menu;
Name = "SkinEditor";
Icon = GdiUtil.CreateIcon(ResourceUtil.GetImage(Sce.Atf.Resources.AtfIconImage));
UpdateTitleText();
m_menu.ResumeLayout(false);
m_menu.PerformLayout();
splitter.Panel1.ResumeLayout(false);
splitter.Panel2.ResumeLayout(false);
splitter.EndInit();
splitter.ResumeLayout(false);
ResumeLayout(false);
PerformLayout();
splitter.SplitterDistance = 170;
}
示例2: 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);
}