コード例 #1
0
        private void BatchDataGridView_RowContextMenuStripNeeded(object sender, DataGridViewRowContextMenuStripNeededEventArgs e)
        {
            bool status = true;

            if (BatchDataGrid.GetSelectedRowMatch().Drawing.File.Contains("Error"))
            {
                status = false;
            }

            DisabledContextDrawingOptions(status);
        }
コード例 #2
0
 private void SearchBatchPrintContextMenuStrip_Click(object sender, EventArgs e)
 {
     Log.Write.Debug($"Search.Ready = {Search.Ready}");
     if (Search.Ready)
     {
         string keyword = BatchDataGrid.GetSelectedRowMatch().Part;
         Log.Write.Debug($"Keyword is {keyword}");
         MainReference.DataGridReference.DataSource = Search.Filter(MainReference.StartsWithCheckBoxReference.Checked, keyword, MainReference.OPCheckBoxReference.Checked, MainReference.BMCheckBoxReference.Checked);
         Program.MainFormReference.BringToFront();
     }
 }
コード例 #3
0
 public static void BatchOpenWithEDrawings() => Process.Start(BatchDataGrid.GetSelectedRowMatch().Drawing.Path);
コード例 #4
0
 public static void BatchOpenWithFileExplorer() => Process.Start("explorer.exe", $"/select, \"{BatchDataGrid.GetSelectedRowMatch().Drawing.Path}\"");
コード例 #5
0
 public static void BatchCopyFilePath() => Clipboard.SetText(BatchDataGrid.GetSelectedRowMatch().Drawing.Path);
コード例 #6
0
 public static void BatchCopyDrawingFileName() => Clipboard.SetText(BatchDataGrid.GetSelectedRowMatch().Drawing.File);
コード例 #7
0
 public static void BatchCopyPartNumber() => Clipboard.SetText(Path.GetFileNameWithoutExtension(BatchDataGrid.GetSelectedRowMatch().Part));
コード例 #8
0
 private void BatchDataGridView_SelectionChanged(object sender, EventArgs e)
 {
     StatusBar.UpdateBatch($"Selected Part: {BatchDataGrid.GetSelectedRowMatch().Part}");
 }