Example #1
0
 private void SelectFileButton_Click(object sender, EventArgs e)
 {
     if (BatchFileLoad.Get())
     {
         BatchDataGrid.SetInputIntoGrid();
     }
 }
Example #2
0
        private void BatchDataGridView_RowContextMenuStripNeeded(object sender, DataGridViewRowContextMenuStripNeededEventArgs e)
        {
            bool status = true;

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

            DisabledContextDrawingOptions(status);
        }
Example #3
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));
Example #9
0
 private void BatchPrintButton_Click(object sender, EventArgs e)
 {
     BatchDataGrid.Print();
 }
Example #10
0
 private void BatchConfirmButton_Click(object sender, EventArgs e)
 {
     BatchDataGrid.Confirm();
 }
Example #11
0
 private void BatchDataGridView_SelectionChanged(object sender, EventArgs e)
 {
     StatusBar.UpdateBatch($"Selected Part: {BatchDataGrid.GetSelectedRowMatch().Part}");
 }
Example #12
0
 private void RemoveDrawingDataContextMenuStrip_Click(object sender, EventArgs e)
 {
     BatchDataGrid.ClearSelectedDrawing();
 }