Ejemplo n.º 1
0
        public void GoToAuthorizationForm()
        {
            foreach (Form form in MdiChildren)
            {
                form.Close();
            }
            AuthorizationForm authorizationForm = new AuthorizationForm(this);

            authorizationForm.Show();
            authorizationForm.Dock = DockStyle.Fill;
        }
Ejemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();
            AuthorizationForm authorizationForm = new AuthorizationForm
            {
                MdiParent = this
            };

            authorizationForm.Show();
            authorizationForm.Dock = DockStyle.Fill;
        }