示例#1
0
        public void ShowView(IView p_View)
        {
            Form form = p_View as Form;

            form.Owner    = this;
            form.TopLevel = false;
            form.Dock     = DockStyle.Fill;
            this.panelMain.Controls.Clear();
            this.panelMain.Controls.Add(form);
            form.Show();

            m_CurrentView = p_View;
            m_CurrentView.Active();

            SetButtonActived(m_CurrentView.GetName());
        }
示例#2
0
        public void ShowView(IView p_View)
        {
            Form form = p_View as Form;
            form.Owner = this;
            form.TopLevel = false;
            form.Dock = DockStyle.Fill;
            this.panelMain.Controls.Clear();
            this.panelMain.Controls.Add(form);
            form.Show();

            m_CurrentView = p_View;
            m_CurrentView.Active();

            SetButtonActived(m_CurrentView.GetName());
        }