コード例 #1
0
 public static void SetInputIntoGrid()
 {
     ProgressBarSetup();
     MatchList = PartToDrawing.Match(LoadedDrawingList);
     BatchReference.BatchDataGridReference.DataSource = MatchList;
     ProgressBarTearDown();
 }
コード例 #2
0
        public static Matcher GetSelectedRowMatch()
        {
            DataGridViewRow row = BatchReference.BatchDataGridReference.CurrentRow;

            return(PartToDrawing.Match(new List <string>()
            {
                MatchList[row.Index].Part
            })[0]);
        }
コード例 #3
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();
        }
コード例 #4
0
        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();
        }