Exemplo n.º 1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     Application.CurrentCulture = CultureInfo.InvariantCulture;
     checkBoxHeaderCell         = new DataGridViewCheckBoxHeaderCell();
     schemeDataGrid.Columns.Insert(0, new DataGridViewCheckBoxColumn());
     schemeDataGrid.Columns[0].HeaderText = "Выбрать";
     schemeDataGrid.Columns[0].HeaderCell = checkBoxHeaderCell;
     schemeDataGrid.Columns[0].Frozen     = true;
     schemeDataGrid.Columns[0].Width      = 40;
     schemeDataGrid.CellValueChanged     += schemeDataGrid_CellValueChanged;
     schemeDataGrid.Columns["toleranceColumn"].HeaderCell.Style.BackColor = Color.White;
     loadSchemeFromFile(fileName);
     calculationsBackgroundWorker.WorkerReportsProgress = true;
 }
Exemplo n.º 2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     Application.CurrentCulture = CultureInfo.InvariantCulture;
     checkBoxHeaderCell = new DataGridViewCheckBoxHeaderCell();
     schemeDataGrid.Columns.Insert(0, new DataGridViewCheckBoxColumn());
     schemeDataGrid.Columns[0].HeaderText = "Выбрать";
     schemeDataGrid.Columns[0].HeaderCell = checkBoxHeaderCell;
     schemeDataGrid.Columns[0].Frozen = true;
     schemeDataGrid.Columns[0].Width = 40;
     schemeDataGrid.CellValueChanged += schemeDataGrid_CellValueChanged;
     schemeDataGrid.Columns["toleranceColumn"].HeaderCell.Style.BackColor = Color.White;
     loadSchemeFromFile(fileName);
     calculationsBackgroundWorker.WorkerReportsProgress = true;
 }