Ejemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();

            // Set main form as MDI container to hold several forms
            this.IsMdiContainer = true;

            this.splitContainer1.SplitterDistance = this.Width / 2;

            // Create checking form
            mCheckingForm_O = new DockableForm(this);
            mCheckingForm_O.DockWindow();
            mCheckingForm_O.SetFrameTitle("Checking");
            this.splitContainer1.Panel1.Controls.Add(mCheckingForm_O);
            mCheckingForm_O.Show();

            // Create job form
            mJobForm_O = new DockableForm(this);
            mJobForm_O.DockWindow();
            mJobForm_O.SetFrameTitle("Jobs");
            this.splitContainer1.Panel2.Controls.Add(mJobForm_O);
            mJobForm_O.Show();

            // Set toolstrip renderer
            toolStrip1.Renderer = new BorderlessToolStripRenderer();
        }
Ejemplo n.º 2
0
 private void toolStripBtnDock_Click(object sender, EventArgs e)
 {
     if (mParentWindow_O != null && !mDocked_b)
     {
         mDocked_b    = mParentWindow_O.DockWindow();
         mMouseDown_b = false;
     }
 }