public LoginForm() { InitializeComponent(); adminForm = new AdminForm(); buttonLogin.Click += ButtonLogin_Click; }
private void ButtonLogin_Click(object sender, EventArgs e) { AdminForm adminForm = new AdminForm(); adminForm.ShowDialog(); }