private void ToolStripMenuItem_DisplayAttachments_Click(object sender, EventArgs e) { if (dataGridView_ItemList.SelectedRows.Count == 0) { return; } AttachmentViewerForm attachmentViewer = new AttachmentViewerForm(pca, currentUser, targetFolder, dataGridView_ItemList.SelectedRows[0].Tag.ToString(), dataGridView_ItemList.SelectedRows[0].Cells[0].Value.ToString()); attachmentViewer.Show(); }
private void DisplayAttachments() { if (dataGridView_ItemList.SelectedRows.Count == 0) { return; } AttachmentViewerForm attachmentViewer = new AttachmentViewerForm(targetFolder, dataGridView_ItemList.SelectedRows[0].Tag.ToString(), dataGridView_ItemList.SelectedRows[0].Cells[0].Value.ToString()); attachmentViewer.Show(); }