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()); }