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


C# SplitContainer.panel2Collapsed方法代码示例

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


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

示例1: buildGui

        private void buildGui()
        {
            this.invokeOnThread(
                () =>
                {
                    "Buliding Gui for ascx_ExecuteScripts.cs.o2".info();
                    // add controls
                    statusLabel = this.parentForm().add_StatusStrip(Color.White);
                    BackColor = Color.White;
                    var topPanel = this.add_Panel();
                    var pictureBox = topPanel.add_PictureBox();
                    statusLabel.IsLink = true;
                    statusLabel.LinkBehavior = LinkBehavior.NeverUnderline;
                    statusLabel.set_Text(welcomeMessage).textColor(this, Color.Black);

                    results_RichTextBox = this.add_RichTextBox();

                    mainSplitContainer = topPanel.insert_Below(results_RichTextBox, 100)
                                                 .get<SplitContainer>();

                    mainSplitContainer.panel2Collapsed(true);

                    setupPictureBoxContextMenu(pictureBox);

                    pictureBox.load(FormImages.O2_Logo);
                    this.onDrop((file) => loadFile(file));

                    statusLabel.Click += (sender, e) => openSimpleScriptEditor();
                    //statusLabel.textColor(this, Color.Black);

                    // put this on menu item
                    //this.add_Link("reload",10,2,()=>loadH2Script());
                    "Buliding Gui complete".info();
                });
        }
开发者ID:SergeTruth,项目名称:OxyChart,代码行数:35,代码来源:ascx_Execute_Scripts.cs

示例2: buildGui

        private void buildGui()
        {
            this.invokeOnThread(
                () =>
                {
                    "Buliding Gui for ascx_ExecuteScripts.cs.o2".info();
                    // add controls
                    statusLabel = this.parentForm().add_StatusStrip(Color.White);
                    this.BackColor = Color.White;
                    var topPanel = this.add_Panel();
                    var pictureBox = (PictureBox)topPanel.add_PictureBox();
                    //.location(20,20)
                    //.align_Bottom(this, 50)
                    //.align_Right(this,20);

                    /*statusLabel = (Label)topPanel.add_Label("Drop script on logo")
                                                 .location(this.Height - 40,60)
                                                 .anchor()
                                                 .bottom();*/

                    //statusLabel.Font = new System.Drawing.Font("Arial", 10, System.Drawing.FontStyle.Regular);
                    statusLabel.IsLink = true;
                    statusLabel.LinkBehavior = LinkBehavior.NeverUnderline;
                    statusLabel.set_Text(welcomeMessage).textColor(this, Color.Black);

                    results_RichTextBox = this.add_RichTextBox();

                    mainSplitContainer = topPanel.insert_Below(results_RichTextBox, 100)
                                                 .get<SplitContainer>();

                    mainSplitContainer.panel2Collapsed(true);

                    setupPictureBoxContextMenu(pictureBox);

                    // load data map actions
                    if (pathToPictureBox.fileExists())
                        pictureBox.load(pathToPictureBox);
                    else
                        "in ascx_Execute_Scripts.buildGui, could not find pathToPictureBox:{0}".error(pathToPictureBox);

                    this.onDrop((file) => loadFile(file));

                    statusLabel.Click += (sender, e) => openSimpleScriptEditor();
                    //statusLabel.textColor(this, Color.Black);

                    // put this on menu item
                    //this.add_Link("reload",10,2,()=>loadH2Script());
                    "Buliding Gui complete".info();
                    return;         // to make this run in sync mode
                });
        }
开发者ID:pusp,项目名称:o2platform,代码行数:51,代码来源:ascx_Execute_Scripts.cs


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