private void btn_settings_Click(object sender, EventArgs e) { MailForm mailForm = new MailForm(); mailForm.ShowDialog(); }
//true - wyjście, false - wylogowanie protected bool MailBoxFunction() { MailForm mailForm = new MailForm(userCommand); return(mailForm.ShowDialog() == DialogResult.Abort); }