public static void SetInputIntoGrid() { ProgressBarSetup(); MatchList = PartToDrawing.Match(LoadedDrawingList); BatchReference.BatchDataGridReference.DataSource = MatchList; ProgressBarTearDown(); }
public static Matcher GetSelectedRowMatch() { DataGridViewRow row = BatchReference.BatchDataGridReference.CurrentRow; return(PartToDrawing.Match(new List <string>() { MatchList[row.Index].Part })[0]); }
public static void ClearSelectedDrawing() { DataGridViewRow row = BatchReference.BatchDataGridReference.CurrentRow; Matcher temp = PartToDrawing.Match(new List <string>() { row.Cells["Part"].Value.ToString() })[0]; temp.Drawing.File = "Error; Manually Removed"; MatchList[row.Index] = temp; BatchReference.BatchDataGridReference.UpdateCellValue(1, row.Index); DataGridStatistics(); }
public static void PullMainSelectionToBatchCell() { IEnumerator <IDrawing> selectedMain = DataGrid.GetSelectedDrawings(MainReference.DataGridReference); if (selectedMain.MoveNext()) { DataGridViewRow row = BatchReference.BatchDataGridReference.CurrentRow; MatchList[row.Index] = PartToDrawing.Match(new List <string>() { selectedMain.Current.File })[0]; BatchReference.BatchDataGridReference.UpdateCellValue(1, row.Index); } DataGridStatistics(); }