Exemple #1
0
 private void newChangeListToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var d = new NewChangeListDialog())
     {
         if (d.ShowDialog(this) == DialogResult.OK)
         {
             CurrentFile    = d.FileName;
             CurrentVersion = d.Version;
             grid.Rows.Clear();
             grid.Rows[0].Cells[0].Value = CurrentVersion;
             var c = (DataGridViewComboBoxCell)grid.Rows[0].Cells[1];
             c.Value = c.Items[0];
             UpdateState();
         }
     }
 }
Exemple #2
0
 private void newChangeListToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var d = new NewChangeListDialog())
     {
         if (d.ShowDialog(this) == DialogResult.OK)
         {
             CurrentFile = d.FileName;
             CurrentVersion = d.Version;
             grid.Rows.Clear();
             grid.Rows[0].Cells[0].Value = CurrentVersion;
             var c = (DataGridViewComboBoxCell)grid.Rows[0].Cells[1];
             c.Value = c.Items[0];
             UpdateState();
         }
     }
 }