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


C# Forms.Splitter类代码示例

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


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

示例1: OnBarUpdate

        protected override void OnBarUpdate()
        {
            if (ChartControl == null || _x )
                return;
            if (!ChartControl.Controls.ContainsKey("TSEco_News"))
            {
                _myitem0 = new ToolStripSeparator();
                _myitem0.Name = "TradingStudiesEcoSeparator";

                _myitem1 = new ToolStripButton("Hide News");
                _myitem1.Text = "Hide News";
                _myitem1.Name = "TradingStudiesEcoNews";
                _myitem1.Click += ToolClick1;
                _myitem1.Enabled = true;
                _myitem1.ForeColor = Color.Black;
                _mystrip = (ToolStrip) ChartControl.Controls["tsrTool"];
                _mystrip.Items.Add(_myitem0);
                _mystrip.Items.Add(_myitem1);

                _sp = new Splitter();
                _sp.Name = "TSEco_Splitter";
                _sp.Dock = _dp == DockingPlace.Below ? DockStyle.Bottom : DockStyle.Top;
                ChartControl.Controls.Add(_sp);

                _so = new EcoNewsControl.EcoNewsControl(Cbi.Core.InstallDir + @"\Sounds", Cbi.Core.UserDataDir + @"bin\Custom\");
                _so.Dock = _dp == DockingPlace.Below ? DockStyle.Bottom : DockStyle.Top;
                _so.Name = "TSEco_News";
                ChartControl.Controls.Add(_so);
            }
            else
                _so = ChartControl.Controls["TSEco_News"] as EcoNewsControl.EcoNewsControl;
            _x = true;
        }
开发者ID:redrhino,项目名称:NinjaTrader.Base,代码行数:33,代码来源:EcoNewsIndicator.cs

示例2: MainForm

        public MainForm()
        {
            rmsController = new RMS_Controller();
            rmsController.MainFrm = this;

            InitializeComponent();

            Panel leftPanel = new Panel();
            leftPanel.AutoScroll = true;
            leftPanel.Width = 350;
            leftPanel.Dock = DockStyle.Left;

            Splitter splitterCtrl = new Splitter();
            splitterCtrl.Dock = DockStyle.Left;
            splitterCtrl.MinExtra = 200;
            splitterCtrl.MinSize = 200;

            Panel mainPanel = new Panel();
            mainPanel.AutoScroll = true;
            mainPanel.Dock = DockStyle.Fill;

            this.Controls.AddRange(new Control[] {mainPanel, splitterCtrl, leftPanel});

            Contract_Control contractsCtrl = new Contract_Control(rmsController);
            contractsCtrl.Dock = DockStyle.Fill;
            leftPanel.Controls.Add(contractsCtrl);

            RateSchedule_Control rateScheduleCtrl = new RateSchedule_Control(rmsController);
            rateScheduleCtrl.Dock = DockStyle.Fill;
            mainPanel.Controls.Add(rateScheduleCtrl);

            //rmsController.RateIDChanged += new System.EventHandler(this.RateID_Changed);
            //rmsController.RateScheduleChange += new System.EventHandler(this.RateID_Changed);
        }
开发者ID:RookieOne,项目名称:RMS_Refactor,代码行数:34,代码来源:MainForm.cs

示例3: EditorContainer

 //private DockPanel _DockPanel;
 //private DockState _DockState;
 public EditorContainer(Editor editor, DockPanel dock, DockState dockState = DockState.Document)
 {
     Editor = editor;
     Editor.UndoRedoStateChanged += Editor_UndoRedoStateChanged;
     Editor.TextChangedDelayed += Editor_TextChangedDelayed;
     Splitter = new Splitter() { Dock = DockStyle.Right, BackColor = SystemColors.ControlDarkDark, Width = 4 };
     DocumentMap = new DocumentMap() {
         Target = editor,
         Dock = DockStyle.Right,
         Width = DocumentMapInitialWidth,
         MinimumSize = new Size(DocumentMapMinimumWidth, 0),
         Scale = DocumentMapInitialWidth * DocumentMapScaleFactor,
         BackColor = EditorSyntax.Styles.Background,
         ForeColor = Color.FromArgb(0, 122, 204)
     };
     DocumentMap.DoubleClick += DocumentMap_DoubleClick;
     DocumentMap.MouseWheel += DocumentMap_MouseWheel;
     Splitter.SplitterMoved += Splitter_SplitterMoved;
     Name = Editor.File.FileName;
     ToolTipText = Editor.File.Path;
     Controls.Add(Editor);
     Controls.Add(Splitter);
     Controls.Add(DocumentMap);
     UpdateText(true);
     FormClosing += EditorContainer_FormClosing;
     FormClosed += EditorContainer_FormClosed;
     System.Threading.Thread.Sleep(10);
     dock.Invoke(new Action(() => { Show(dock, dockState); }));
 }
开发者ID:rbrzezinski,项目名称:Trax,代码行数:31,代码来源:EditorContainer.cs

示例4: SideBar

	/// <summary>
	/// Конструктор класса
	/// </summary>
	/// <param name="Caption">Заголовок для боковой панели</param>
	/// <param name="parent">Боковая панель</param>
	/// <param name="splitter">Сплиттер</param>
	/// <param name="formParent">Родительская форма</param>
	public SideBar(String Caption, Control parent, Splitter splitter, BankLab formParent)
	{
		SideBarSplitter = splitter;
		SideBarPanel = (Panel)parent;
		FormParent = formParent;
		SideBarTitle = CreateSideBarTitle(Caption);
	}
开发者ID:JDevelopBox,项目名称:Banklab,代码行数:14,代码来源:SideBar.cs

示例5: AddToolWindow

        public void AddToolWindow(ToolWindow toolWindow, int toolWindowGroupIndex)
        {
            ToolWindowHost host;

            if (toolWindowGroupIndex != -1)
            {
                if (this.ToolWindowHosts.Count <= toolWindowGroupIndex)
                {
                    toolWindowGroupIndex = this.ToolWindowHosts.Count - 1;
                }
                host = (ToolWindowHost) this._toolWindowHosts[toolWindowGroupIndex];
            }
            else
            {
               host = new DockedToolWindowHost(this._toolWindowManager);

               if (this.ToolWindowHosts.Count != 0)
                {
                    Splitter splitter = new Splitter();
                    splitter.Size = new Size(4, 4);
                    splitter.Dock = host.Dock = this.ContainedControlDockStyle;
                    base.Controls.Add(splitter);
                }
                this._toolWindowHosts.Add(host);
                base.Controls.Add(host);
                host.Visible = true;
            }
            host.AddToolWindow(toolWindow);
        }
开发者ID:ikvm,项目名称:webmatrix,代码行数:29,代码来源:DockingContainer.cs

示例6: Form1

        public Form1()
        {
            InitializeComponent();

            this.Text = "Splitter 컨트롤 사용하기";

            TreeView treeView = new TreeView();
            ListView listView = new ListView();
            Splitter splitter = new Splitter(); // splitter 개체 생성(과거버전)

            treeView.Dock = DockStyle.Left; // 트리뷰를 폼의 외쪽에 배치
            splitter.Dock = DockStyle.Left; // 스플리터를 폼의 왼쪽에 배치

            splitter.MinExtra = 100;    // 스플리터와 컨테이너 반대쪽 가장자리 사이의 간격
            splitter.MinSize = 75;      // 스플리터와 컨트롤 간의 최소 간격

            listView.Dock = DockStyle.Fill; // 리스트뷰는 화면 전체에 채움

            treeView.Nodes.Add("트리 노드1");
            treeView.Nodes.Add("트리 노드2");
            listView.Items.Add("리스트 아이템1");
            listView.Items.Add("리스트 아이템2");

            // 폼에 리스트뷰, 스플리터, 트리뷰 컨트롤을 추가
            this.Controls.AddRange(new Control[] { listView, splitter, treeView });
        }
开发者ID:gawallsibya,项目名称:BIT_MFC-CShap-DotNet,代码行数:26,代码来源:Form1.cs

示例7: ImportData_Control

        public ImportData_Control()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            progBar = new RMS_ProgressBar();
            progBar.Dock = DockStyle.Bottom;
            progBar.setAlignment("Center");
            topPanel.Controls.Add(progBar);

            sourcePanel = new Panel();
            sourcePanel.AutoScroll = true;
            sourcePanel.Width = 350;
            sourcePanel.Dock = DockStyle.Left;

            Splitter splitterCtrl = new Splitter();
            splitterCtrl.Dock = DockStyle.Left;
            splitterCtrl.MinExtra = 200;
            splitterCtrl.MinSize = 200;

            destinationPanel = new Panel();
            destinationPanel.AutoScroll = true;
            destinationPanel.Dock = DockStyle.Fill;

            fieldsGroupBx.Controls.AddRange(new Control[] {destinationPanel, splitterCtrl, sourcePanel});
        }
开发者ID:RookieOne,项目名称:RMS_Refactor,代码行数:26,代码来源:ImportData_Control.cs

示例8: SetupForm

        public SetupForm(Splitter aSplitter, IItemBrowser aBrowser)
        {
            mSplitter   = aSplitter;
            mBrowser    = aBrowser;
            InitializeComponent();

            if (mSplitter.mBitsValueItemHandle != -1)
            {
                itemEditBox_Value.ItemName      = mBrowser.getItemNameByHandle(mSplitter.mBitsValueItemHandle);
                itemEditBox_Value.ItemToolTip   = mBrowser.getItemToolTipByHandle(mSplitter.mBitsValueItemHandle);
            }

            switch (mSplitter.mDataFlow)
            {
                case EDataFlow.FROM:    comboBox_DataFlow.SelectedIndex = 0; break;
                case EDataFlow.TO:      comboBox_DataFlow.SelectedIndex = 1; break;
                case EDataFlow.BOTH:    comboBox_DataFlow.SelectedIndex = 2; break;
            }

            for (int i = 0; i < mSplitter.mBitItemHandles.Length; i++)
            {
                if (mSplitter.mBitItemHandles[i] != -1)
                {
                    dataGridView_Bit.Rows.Add((decimal)i, mBrowser.getItemNameByHandle(mSplitter.mBitItemHandles[i]));
                }
            }

            if (dataGridView_Bit.RowCount == 0)
            {
                button_Delete.Enabled = false;
                button_Modify.Enabled = false;
            }
        }
开发者ID:yuriik83,项目名称:Process-Simulator-2-OpenSource,代码行数:33,代码来源:SetupForm.cs

示例9: InitializeComponent

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.grid = new System.Windows.Forms.PropertyGrid();
            this.splitter1 = new System.Windows.Forms.Splitter();
            this.tboxElementHtml = new System.Windows.Forms.TextBox();
            this.SuspendLayout();
            // 
            // grid
            // 
            this.grid.BackColor = System.Drawing.SystemColors.Control;
            this.grid.CommandsVisibleIfAvailable = true;
            this.grid.Dock = System.Windows.Forms.DockStyle.Right;
            this.grid.HelpVisible = false;
            this.grid.LargeButtons = false;
            this.grid.LineColor = System.Drawing.SystemColors.ScrollBar;
            this.grid.Location = new System.Drawing.Point(376, 0);
            this.grid.Name = "grid";
            this.grid.PropertySort = System.Windows.Forms.PropertySort.Categorized;
            this.grid.Size = new System.Drawing.Size(232, 310);
            this.grid.TabIndex = 0;
            this.grid.Text = "propertyGrid1";
            this.grid.ViewBackColor = System.Drawing.Color.White;
            this.grid.ViewForeColor = System.Drawing.SystemColors.WindowText;
            // 
            // splitter1
            // 
            this.splitter1.Dock = System.Windows.Forms.DockStyle.Right;
            this.splitter1.Location = new System.Drawing.Point(373, 0);
            this.splitter1.Name = "splitter1";
            this.splitter1.Size = new System.Drawing.Size(3, 310);
            this.splitter1.TabIndex = 1;
            this.splitter1.TabStop = false;
            // 
            // tboxElementHtml
            // 
            this.tboxElementHtml.BackColor = System.Drawing.Color.White;
            this.tboxElementHtml.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tboxElementHtml.Location = new System.Drawing.Point(0, 0);
            this.tboxElementHtml.Multiline = true;
            this.tboxElementHtml.Name = "tboxElementHtml";
            this.tboxElementHtml.ReadOnly = true;
            this.tboxElementHtml.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
            this.tboxElementHtml.Size = new System.Drawing.Size(373, 310);
            this.tboxElementHtml.TabIndex = 2;
            this.tboxElementHtml.Text = "";
            // 
            // ElementProperties
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(608, 310);
            this.Controls.Add(this.tboxElementHtml);
            this.Controls.Add(this.splitter1);
            this.Controls.Add(this.grid);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
            this.Name = "ElementProperties";
            this.Text = "Element Properties";
            this.Resize += new System.EventHandler(this.ElementProperties_Resize);
            this.ResumeLayout(false);

        }
开发者ID:ctsyolin,项目名称:ieunit,代码行数:64,代码来源:ElementProperties.cs

示例10: ResourceSelectionControl

        public ResourceSelectionControl( ResourceControl resourceControl )
        {
            resourceSplitter = new Splitter( );

            resourceListBox = new ResourceListBox( );
            resourceTreeView = new ResourceTreeView( resourceListBox );
            resourceListBox.ResourceTreeView = resourceTreeView;

            SuspendLayout( );

            // resourceListBox
            resourceListBox.Size = new Size( 592, 328 );
            resourceListBox.Dock = DockStyle.Fill;
            resourceListBox.TabIndex = 0;
            resourceListBox.ContextMenu = resourceControl.InternalContextMenu;

            // resourceTreeView
            resourceTreeView.Dock = DockStyle.Left;
            resourceTreeView.Size = new Size( 150, 328 );

            // resourceSplitter
            resourceSplitter.Dock = DockStyle.Left;
            resourceSplitter.MinExtra = 150;
            resourceSplitter.MinSize = 150;

            Controls.Add( resourceListBox );
            Controls.Add( resourceSplitter );
            Controls.Add( resourceTreeView );

            ResumeLayout( false );
        }
开发者ID:mono,项目名称:winforms-tools,代码行数:31,代码来源:ResourceSelectionControl.cs

示例11: TestCaptureWhileSettingSplitPosition

		public void TestCaptureWhileSettingSplitPosition ()
		{
			Form f = new Form ();

			TextBox TextBox1 = new TextBox();
			TextBox1.Dock = DockStyle.Left;
			Splitter Splitter = new Splitter();
			Splitter.Dock = DockStyle.Left;
			TextBox TextBox2 = new TextBox();
			TextBox2.Dock = DockStyle.Fill;
			f.Controls.AddRange(new Control[] { TextBox2, Splitter, TextBox1 });
			Splitter.Capture = true;
			Splitter.SplitPosition = (f.ClientSize.Width - Splitter.Width) / 2;

			int position_with_capture = Splitter.SplitPosition;

			f.Dispose ();

			f = new Form ();

			TextBox1 = new TextBox();
			TextBox1.Dock = DockStyle.Left;
			Splitter = new Splitter();
			Splitter.Dock = DockStyle.Left;
			TextBox2 = new TextBox();
			TextBox2.Dock = DockStyle.Fill;
			f.Controls.AddRange(new Control[] { TextBox2, Splitter, TextBox1 });
			Splitter.Capture = true;
			Splitter.SplitPosition = (f.ClientSize.Width - Splitter.Width) / 2;

			Assert.AreEqual (Splitter.SplitPosition, position_with_capture, "1");
		}
开发者ID:Profit0004,项目名称:mono,代码行数:32,代码来源:SplitterTest.cs

示例12: ApplicationWindow

        public ApplicationWindow()
        {
            this.Icon = new Icon(this.GetType().Assembly.GetManifestResourceStream("Resourcer.Application.ico"));
            this.Font = new Font("Tahoma", 8.25f);
            this.Text = (this.GetType().Assembly.GetCustomAttributes(typeof(System.Reflection.AssemblyTitleAttribute), false)[0] as System.Reflection.AssemblyTitleAttribute).Title;
            this.Size = new Size(480, 600);
            this.MinimumSize = new Size (240, 300);

            this.resourceBrowser = new ResourceBrowser();
            this.resourceBrowser.Dock = DockStyle.Fill;
            this.Controls.Add(this.resourceBrowser);

            this.verticalSplitter = new Splitter ();
            this.verticalSplitter.Dock = DockStyle.Bottom;
            this.verticalSplitter.BorderStyle = BorderStyle.None;
            this.Controls.Add(this.verticalSplitter);

            this.resourceViewer = new ResourcerViewer();
            this.resourceViewer.Dock = DockStyle.Bottom;
            this.resourceViewer.Height = 100;
            this.Controls.Add(this.resourceViewer);

            this.statusBar = new StatusBar();
            this.Controls.Add(this.statusBar);

            this.commandBarManager = new CommandBarManager();
            this.menuBar = new CommandBar(this.commandBarManager, CommandBarStyle.Menu);
            this.commandBarManager.CommandBars.Add(this.menuBar);
            this.toolBar = new CommandBar(this.commandBarManager, CommandBarStyle.ToolBar);
            this.commandBarManager.CommandBars.Add(this.toolBar);
            this.Controls.Add(this.commandBarManager);
        }
开发者ID:modulexcite,项目名称:Resourcer,代码行数:32,代码来源:ApplicationWindow.cs

示例13: 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() {
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainForm));
			this.statusBar = new System.Windows.Forms.StatusBar();
			this.splitter3 = new System.Windows.Forms.Splitter();
			this.dockPanel1 = new WeifenLuo.WinFormsUI.DockPanel();
			this.timerExternallyModifiedFiles = new System.Windows.Forms.Timer(this.components);
			this.SuspendLayout();
			// 
			// statusBar
			// 
			this.statusBar.Location = new System.Drawing.Point(0, 459);
			this.statusBar.Name = "statusBar";
			this.statusBar.Size = new System.Drawing.Size(758, 21);
			this.statusBar.TabIndex = 6;
			// 
			// splitter3
			// 
			this.splitter3.Dock = System.Windows.Forms.DockStyle.Bottom;
			this.splitter3.Location = new System.Drawing.Point(0, 456);
			this.splitter3.Name = "splitter3";
			this.splitter3.Size = new System.Drawing.Size(758, 3);
			this.splitter3.TabIndex = 21;
			this.splitter3.TabStop = false;
			// 
			// dockPanel1
			// 
			this.dockPanel1.ActiveAutoHideContent = null;
			this.dockPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
			this.dockPanel1.Font = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World);
			this.dockPanel1.Location = new System.Drawing.Point(0, 0);
			this.dockPanel1.Name = "dockPanel1";
			this.dockPanel1.Size = new System.Drawing.Size(758, 456);
			this.dockPanel1.TabIndex = 23;
			// 
			// timerExternallyModifiedFiles
			// 
			this.timerExternallyModifiedFiles.Interval = 200;
			this.timerExternallyModifiedFiles.Tick += new System.EventHandler(this.timerExternallyModifiedFiles_Tick);
			// 
			// MainForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(758, 480);
			this.Controls.Add(this.dockPanel1);
			this.Controls.Add(this.splitter3);
			this.Controls.Add(this.statusBar);
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.IsMdiContainer = true;
			this.Name = "MainForm";
			this.Text = "CH3ETAH";
			this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
			this.Closing += new System.ComponentModel.CancelEventHandler(this.Form_Closing);
			this.Load += new System.EventHandler(this.MainForm_Load);
			this.Activated += new System.EventHandler(this.MainForm_Activated);
			this.Deactivate += new System.EventHandler(this.MainForm_Deactivate);
			this.ResumeLayout(false);

		}
开发者ID:BackupTheBerlios,项目名称:ch3etah-svn,代码行数:64,代码来源:MainForm.cs

示例14: InitializeComponent

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.lbDragDropSource = new System.Windows.Forms.ListBox();
			this.splitterCentral = new System.Windows.Forms.Splitter();
			this.txtMain = new System.Windows.Forms.TextBox();
			this.SuspendLayout();
			// 
			// lbDragDropSource
			// 
			this.lbDragDropSource.Dock = System.Windows.Forms.DockStyle.Left;
			this.lbDragDropSource.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lbDragDropSource.IntegralHeight = false;
			this.lbDragDropSource.ItemHeight = 20;
			this.lbDragDropSource.Name = "lbDragDropSource";
			this.lbDragDropSource.Size = new System.Drawing.Size(152, 301);
			this.lbDragDropSource.TabIndex = 0;
			this.lbDragDropSource.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lbDragDropSource_MouseDown);
			this.lbDragDropSource.QueryContinueDrag += new System.Windows.Forms.QueryContinueDragEventHandler(this.lbDragDropSource_QueryContinueDrag);
			// 
			// splitterCentral
			// 
			this.splitterCentral.Location = new System.Drawing.Point(152, 0);
			this.splitterCentral.Name = "splitterCentral";
			this.splitterCentral.Size = new System.Drawing.Size(3, 301);
			this.splitterCentral.TabIndex = 1;
			this.splitterCentral.TabStop = false;
			// 
			// txtMain
			// 
			this.txtMain.AcceptsReturn = true;
			this.txtMain.AcceptsTab = true;
			this.txtMain.AllowDrop = true;
			this.txtMain.Dock = System.Windows.Forms.DockStyle.Fill;
			this.txtMain.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.txtMain.Location = new System.Drawing.Point(155, 0);
			this.txtMain.Multiline = true;
			this.txtMain.Name = "txtMain";
			this.txtMain.Size = new System.Drawing.Size(333, 301);
			this.txtMain.TabIndex = 2;
			this.txtMain.Text = "";
			this.txtMain.DragOver += new System.Windows.Forms.DragEventHandler(this.txtMain_DragOver);
			this.txtMain.DragDrop += new System.Windows.Forms.DragEventHandler(this.txtMain_DragDrop);
			this.txtMain.TextChanged += new System.EventHandler(this.txtMain_TextChanged);
			// 
			// DragDropForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(488, 301);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.txtMain,
																		  this.splitterCentral,
																		  this.lbDragDropSource});
			this.Name = "DragDropForm";
			this.Text = "Drag and Drop Sample";
			this.ResumeLayout(false);

		}
开发者ID:ppatoria,项目名称:SoftwareDevelopment,代码行数:61,代码来源:MAIN.CS

示例15: AddInScoutViewContent

        public AddInScoutViewContent()
            : base()
        {
            this.TitleName = "AddIn Scout";

            Panel p = new Panel();
            p.Dock = DockStyle.Fill;
            p.BorderStyle = BorderStyle.FixedSingle;

            Panel RightPanel = new Panel();
            RightPanel.Dock = DockStyle.Fill;
            p.Controls.Add(RightPanel);

            codonListPanel.Dock = DockStyle.Fill;
            codonListPanel.CurrentAddinChanged += new EventHandler(CodonListPanelCurrentAddinChanged);
            RightPanel.Controls.Add(codonListPanel);

            Splitter hs = new Splitter();
            hs.Dock = DockStyle.Top;
            RightPanel.Controls.Add(hs);

            addInDetailsPanel.Dock = DockStyle.Top;
            addInDetailsPanel.Height = 175;
            RightPanel.Controls.Add(addInDetailsPanel);

            Splitter s1 = new Splitter();
            s1.Dock = DockStyle.Left;
            p.Controls.Add(s1);

            AddinTreeView addinTreeView = new AddinTreeView();
            addinTreeView.Dock = DockStyle.Fill;
            addinTreeView.treeView.AfterSelect += new TreeViewEventHandler(this.tvSelectHandler);

            TreeTreeView treeTreeView = new TreeTreeView();
            treeTreeView.Dock = DockStyle.Fill;
            treeTreeView.treeView.AfterSelect += new TreeViewEventHandler(this.tvSelectHandler);

            TabControl tab = new TabControl();
            tab.Width = 300;
            tab.Dock = DockStyle.Left;

            TabPage tabPage2 = new TabPage("Tree");
            tabPage2.Dock = DockStyle.Left;
            tabPage2.Controls.Add(treeTreeView);
            tab.TabPages.Add(tabPage2);

            TabPage tabPage = new TabPage("AddIns");
            tabPage.Dock = DockStyle.Left;
            tabPage.Controls.Add(addinTreeView);
            tab.TabPages.Add(tabPage);

            p.Controls.Add(tab);

            this.control = p;
            this.TitleName = "AddIn Scout";
        }
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:56,代码来源:AddInScoutViewContent.cs


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