private void deleteButton_Click(object sender, EventArgs e)
 {
     if (current != null)
     {
         model.ConstraintList.Remove(current);
         current = null;
         UpdateDialog();
     }
 }
 private void deleteButton_Click(object sender, EventArgs e)
 {
     if (current != null)
     {
         model.ConstraintList.Remove(current);
         current = null;
         UpdateDialog();
     }
 }
 private void constraintsListBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     current = (Canguro.Model.Constraint)constraintsListBox.SelectedItem;
     editButton.Enabled = (current != null);
     deleteButton.Enabled = (current != null);
 }
 private void addButton_Click(object sender, EventArgs e)
 {
     current = new Canguro.Model.Constraint();
     wizardControl.SelectTab(1);
 }
 private void constraintsListBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     current              = (Canguro.Model.Constraint)constraintsListBox.SelectedItem;
     editButton.Enabled   = (current != null);
     deleteButton.Enabled = (current != null);
 }
 private void addButton_Click(object sender, EventArgs e)
 {
     current = new Canguro.Model.Constraint();
     wizardControl.SelectTab(1);
 }
示例#7
0
 private void constraintComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     value = (constraintComboBox.SelectedItem is Model.Constraint) ? (Model.Constraint)constraintComboBox.SelectedItem : null;
     notifyCellDirty();
 }
 private void constraintComboBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     value = (constraintComboBox.SelectedItem is Model.Constraint) ? (Model.Constraint)constraintComboBox.SelectedItem : null;
     notifyCellDirty();
 }