private void EmailDetilsVievwer() { if (MessagesListBoc.SelectedIndex >= 0) { int index = MessagesListBoc.SelectedIndex; ContactManagerrr a = messages[index]; EmailSending email = new EmailSending(a.getName(), a.getEmail(), a.getSubject(), a.getMessage()); email.ShowDialog(); } }
private void sendEmailToolStripMenuItem_Click(object sender, EventArgs e) { if (ListBox.SelectedIndex >= 0) { int ag = ListBox.SelectedIndex; ContactManagerrr m = instances[ag]; EmailSending emailsending = new EmailSending(m.getName(), m.getEmail()); emailsending.ShowDialog(); ReloadMessaging(); ReloadRoster(); } }