Пример #1
0
        private void ChildenWindow_Activated(object sender, EventArgs e)
        {
            LayoutWindowDesigner frm = (LayoutWindowDesigner)this.MdiParent;

            frm.MenuItemTopPanel.Checked    = panelTop.Visible;
            frm.MenuItemBottomPanel.Checked = panelBottom.Visible;
            frm.MenuItemLeftPanel.Checked   = panelLeft.Visible;
            frm.MenuItemRightPanel.Checked  = panelRight.Visible;
        }
Пример #2
0
        private void listControl_DoubleClick(object sender, EventArgs e)
        {
            if (listControl.SelectedItems.Count == 0)
            {
                return;
            }
            SelDockPanel frm = new SelDockPanel();

            if (frm.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            LayoutWindowDesigner mdiParent = (LayoutWindowDesigner)this.MdiParent;

            mdiParent.GetActiveChildenWindow().OnDragDrop(frm.m_dock, listControl.SelectedItems[0]);
        }