Ejemplo n.º 1
0
 private void metroButton2_Click(object sender, EventArgs e)
 {
     if (user.login())
     {
         this.Hide();
         ScreenForm form2 = new ScreenForm();
         form2.Closed += (s, args) => this.Close();
         //form2.Visible = false;
         form2.Show();
     }
 }
Ejemplo n.º 2
0
        private void screenToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (MdiChildren.Length > 0)
            {
                return;
            }

            var screen = new ScreenForm
            {
                MdiParent = this
            };

            screen.Show();
        }