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


C# SplitContainer.BeginInit方法代码示例

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


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

示例1: Init

        private void Init()
        {
            if (s_schemaLoader == null)
                s_schemaLoader = new SchemaLoader();
            m_PropertyGrid = new PropertyGrid(PropertyGridMode.PropertySorting | PropertyGridMode.DisplayDescriptions | PropertyGridMode.HideResetAllButton);
            m_treeControl = new TreeControl();
            m_menu = new MenuStrip();
            var fileMenu = new ToolStripMenuItem();
            var newMenu = new ToolStripMenuItem();
            var openMenu = new ToolStripMenuItem();

            var exitMenu = new ToolStripMenuItem();
            var splitter = new SplitContainer();

            m_menu.SuspendLayout();
            splitter.BeginInit();
            splitter.Panel1.SuspendLayout();
            splitter.Panel2.SuspendLayout();
            splitter.SuspendLayout();

            SuspendLayout();

            // 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);
//.........这里部分代码省略.........
开发者ID:Joxx0r,项目名称:ATF,代码行数:101,代码来源:SkinEditor.cs

示例2: InitializeComponent

 private void InitializeComponent()
 {
     components = new Container();
     ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(Main));
     tabControl1 = new TabControl();
     mainPage = new TabPage();
     newVersionCheck = new CheckBox();
     groupBox1 = new GroupBox();
     newsBox = new Label();
     userGroupLabel = new Label();
     hackVersionLabel = new Label();
     loaderVersionLabel = new Label();
     startButton = new Button();
     reloadButton = new Button();
     label1 = new Label();
     chatPage = new TabPage();
     ircTabControl = new TabControl();
     tabPage1 = new TabPage();
     splitContainer1 = new SplitContainer();
     label4 = new Label();
     ircLanguage = new ComboBox();
     label2 = new Label();
     label3 = new Label();
     enterChatButton = new Button();
     autoEnterChatCheckBox = new CheckBox();
     statusBox = new ListBox();
     tabPage2 = new TabPage();
     splitContainer2 = new SplitContainer();
     splitContainer3 = new SplitContainer();
     ircMessageBox = new RichTextBox();
     ircUserList = new ListBox();
     flowLayoutPanel1 = new FlowLayoutPanel();
     ircSendButton = new Button();
     ircChatText = new TextBox();
     ircCloseButton = new Button();
     scriptsPage = new TabPage();
     scriptsDataGrid = new DataGridView();
     LoadScript = new DataGridViewCheckBoxColumn();
     ScriptName = new DataGridViewTextBoxColumn();
     ScriptDescription = new DataGridViewTextBoxColumn();
     State = new DataGridViewImageColumn();
     ConfigColumn = new DataGridViewImageColumn();
     listBinding = new BindingSource(components);
     scriptConfigPage = new TabPage();
     scriptConfigGrid = new PropertyGrid();
     repository = new TabPage();
     tableLayoutPanel1 = new TableLayoutPanel();
     tableLayoutPanel2 = new TableLayoutPanel();
     tableLayoutPanel3 = new TableLayoutPanel();
     repoName = new TextBox();
     addRepo = new Button();
     removeRepo = new Button();
     repoScripts = new TreeView();
     configPage = new TabPage();
     configGrid = new PropertyGrid();
     helpPage = new TabPage();
     changelogLink = new LinkLabel();
     bugLink = new LinkLabel();
     scriptsLink = new LinkLabel();
     installLink = new LinkLabel();
     dotaFindTimer = new System.Windows.Forms.Timer(components);
     taskbarIcon = new NotifyIcon(components);
     injectWorker = new BackgroundWorker();
     pipeWorker = new BackgroundWorker();
     serverWorker = new BackgroundWorker();
     updateTimer = new System.Windows.Forms.Timer(components);
     loadWorker = new BackgroundWorker();
     DisableVAC = new CheckBox();
     tabControl1.SuspendLayout();
     mainPage.SuspendLayout();
     groupBox1.SuspendLayout();
     chatPage.SuspendLayout();
     ircTabControl.SuspendLayout();
     tabPage1.SuspendLayout();
     splitContainer1.BeginInit();
     splitContainer1.Panel1.SuspendLayout();
     splitContainer1.Panel2.SuspendLayout();
     splitContainer1.SuspendLayout();
     tabPage2.SuspendLayout();
     splitContainer2.BeginInit();
     splitContainer2.Panel1.SuspendLayout();
     splitContainer2.Panel2.SuspendLayout();
     splitContainer2.SuspendLayout();
     splitContainer3.BeginInit();
     splitContainer3.Panel1.SuspendLayout();
     splitContainer3.Panel2.SuspendLayout();
     splitContainer3.SuspendLayout();
     flowLayoutPanel1.SuspendLayout();
     scriptsPage.SuspendLayout();
     ((ISupportInitialize)scriptsDataGrid).BeginInit();
     ((ISupportInitialize)listBinding).BeginInit();
     scriptConfigPage.SuspendLayout();
     repository.SuspendLayout();
     tableLayoutPanel1.SuspendLayout();
     tableLayoutPanel2.SuspendLayout();
     tableLayoutPanel3.SuspendLayout();
     configPage.SuspendLayout();
     helpPage.SuspendLayout();
     SuspendLayout();
     tabControl1.Controls.Add(mainPage);
//.........这里部分代码省略.........
开发者ID:Moones,项目名称:OpenEnsage,代码行数:101,代码来源:Main.cs


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