예제 #1
0
        private void ChangeViewForm(Form formChild)
        {
            if (this.Form != null)
            {
                this.Form.Close();
            }

            this.Form          = formChild;
            formChild.TopLevel = false;
            formChild.Dock     = DockStyle.Fill;
            Central.Controls.Add(formChild);
            Central.Tag = formChild;
            Central.BringToFront();
            formChild.Show();
        }