Exemplo n.º 1
0
        private void BatchDataGridView_RowContextMenuStripNeeded(object sender, DataGridViewRowContextMenuStripNeededEventArgs e)
        {
            bool status = true;

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

            DisabledContextDrawingOptions(status);
        }
Exemplo n.º 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();
     }
 }
 public static void BatchOpenWithEDrawings() => Process.Start(BatchDataGrid.GetSelectedRowMatch().Drawing.Path);
 public static void BatchOpenWithFileExplorer() => Process.Start("explorer.exe", $"/select, \"{BatchDataGrid.GetSelectedRowMatch().Drawing.Path}\"");
 public static void BatchCopyFilePath() => Clipboard.SetText(BatchDataGrid.GetSelectedRowMatch().Drawing.Path);
 public static void BatchCopyDrawingFileName() => Clipboard.SetText(BatchDataGrid.GetSelectedRowMatch().Drawing.File);
 public static void BatchCopyPartNumber() => Clipboard.SetText(Path.GetFileNameWithoutExtension(BatchDataGrid.GetSelectedRowMatch().Part));
Exemplo n.º 8
0
 private void BatchDataGridView_SelectionChanged(object sender, EventArgs e)
 {
     StatusBar.UpdateBatch($"Selected Part: {BatchDataGrid.GetSelectedRowMatch().Part}");
 }