private void btn_push_Click(object sender, EventArgs e) { frm_push_mail frm_push_mail = new frm_push_mail(); frm_push_mail.Show(); this.Close(); }
private void btn_create_doc_Click(object sender, EventArgs e) { try { if (cmboboxcreate.SelectedItem == null) { throw new Exception("Please select a document from the document list."); } else { frm_push_mail pushmail = new frm_push_mail(); Model model = (Model)cmboboxcreate.SelectedItem; pushmail.push_mail(model.model, 0); this.Close(); } } catch (Exception ex) { Connect.handleException(ex); } }