private void FillGrid([NotNull] IReadOnlyCollection <TVSettings.FilenameProcessorRE> list) { while (Grid1.Rows.Count > 1) // leave header row { Grid1.Rows.Remove(1); } Grid1.RowsCount = list.Count + 1; int i = 1; foreach (TVSettings.FilenameProcessorRE re in list) { Grid1[i, 0] = new SourceGrid.Cells.CheckBox(null, re.Enabled); Grid1[i, 1] = new SourceGrid.Cells.Cell(re.RegExpression, typeof(string)); Grid1[i, 2] = new SourceGrid.Cells.CheckBox(null, re.UseFullPath); Grid1[i, 3] = new SourceGrid.Cells.Cell(re.Notes, typeof(string)); ChangedCont changed = new ChangedCont(this); for (int c = 0; c < 4; c++) { Grid1[i, c].AddController(changed); } i++; } StartTimer(); }
public void FillGrid(List <FilenameProcessorRE> list) { while (this.Grid1.Rows.Count > 1) // leave header row { this.Grid1.Rows.Remove(1); } this.Grid1.RowsCount = list.Count + 1; int i = 1; foreach (FilenameProcessorRE re in list) { this.Grid1[i, 0] = new SourceGrid.Cells.CheckBox(null, re.Enabled); this.Grid1[i, 1] = new SourceGrid.Cells.Cell(re.RE, typeof(string)); this.Grid1[i, 2] = new SourceGrid.Cells.CheckBox(null, re.UseFullPath); this.Grid1[i, 3] = new SourceGrid.Cells.Cell(re.Notes, typeof(string)); ChangedCont changed = new ChangedCont(this); for (int c = 0; c < 4; c++) { this.Grid1[i, c].AddController(changed); } i++; } this.StartTimer(); }
public void AddNewRow() { int r = this.Grid1.RowsCount; this.Grid1.RowsCount = r + 1; this.Grid1[r, 0] = new SourceGrid.Cells.CheckBox(null, true); this.Grid1[r, 1] = new SourceGrid.Cells.Cell("", typeof(string)); this.Grid1[r, 2] = new SourceGrid.Cells.CheckBox(null, false); this.Grid1[r, 3] = new SourceGrid.Cells.Cell("", typeof(string)); ChangedCont changed = new ChangedCont(this); for (int c = 0; c < 4; c++) this.Grid1[r, c].AddController(changed); }
private void AddNewRow() { int r = Grid1.RowsCount; Grid1.RowsCount = r + 1; Grid1[r, 0] = new SourceGrid.Cells.CheckBox(null, true); Grid1[r, 1] = new SourceGrid.Cells.Cell("", typeof(string)); Grid1[r, 2] = new SourceGrid.Cells.CheckBox(null, false); Grid1[r, 3] = new SourceGrid.Cells.Cell("", typeof(string)); ChangedCont changed = new ChangedCont(this); for (int c = 0; c < 4; c++) { Grid1[r, c].AddController(changed); } }
public void FillGrid(List<FilenameProcessorRE> list) { while (this.Grid1.Rows.Count > 1) // leave header row this.Grid1.Rows.Remove(1); this.Grid1.RowsCount = list.Count + 1; int i = 1; foreach (FilenameProcessorRE re in list) { this.Grid1[i, 0] = new SourceGrid.Cells.CheckBox(null, re.Enabled); this.Grid1[i, 1] = new SourceGrid.Cells.Cell(re.RE, typeof(string)); this.Grid1[i, 2] = new SourceGrid.Cells.CheckBox(null, re.UseFullPath); this.Grid1[i, 3] = new SourceGrid.Cells.Cell(re.Notes, typeof(string)); ChangedCont changed = new ChangedCont(this); for (int c = 0; c < 4; c++) this.Grid1[i, c].AddController(changed); i++; } this.StartTimer(); }