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();
        }
Exemple #2
0
        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();
        }
Exemple #3
0
 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();
     }
 }