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); }
private void mailBrBtn_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { mailForm = new MailForm(); //mailForm.MdiParent = this; mailForm.Show(); }
public async Task <IActionResult> SendEmailAsync(MailForm mailForm) { await _mailService.SendEmail(mailForm.Address, mailForm.Title, mailForm.Content); return(Ok()); }