private void view_button_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (folderEmailDataView.SelectedRows == null || folderEmailDataView.SelectedRows.Count != 1) { return; } string selectedEmail = folderEmailDataView.CurrentRow.Cells["EMAILID"].Value.ToString(); ViewEmail view = new ViewEmail(selectedEmail); view.ShowDialog(); }
private void linkLabel10_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (sentDataView.SelectedRows.Count != 1) { return; } string emailId = sentDataView.SelectedRows[0].Cells["EMAILID"].Value.ToString(); ViewEmail viewForm = new ViewEmail(emailId); viewForm.ShowDialog(); refresh_inbox(); }
private void view_archived_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (archiveDataView.CurrentRow == null) { statusLabel.Text = "select Email to view."; } else { string selectedEmail = archiveDataView.CurrentRow.Cells["EMAILID"].Value.ToString(); ViewEmail view = new ViewEmail(selectedEmail); view.ShowDialog(); } }