private void TSMI_saveEmail_Click(object sender, EventArgs e) { using (var form = new EmailHandlerForm(new UserControlSettings() { condition = UserControlManager.UserConditions.saveEmail })) { form.ShowDialog(); } }
private void TSMI_change_Click(object sender, EventArgs e) { using (var form = new EmailHandlerForm(new UserControlSettings() { condition = UserControlManager.UserConditions.changeEmail, email = emails[DGV_emails.CurrentRow.Index] })) { form.ShowDialog(); } }