예제 #1
0
 private void deleteButton_Click(object sender, EventArgs e)
 {
     if (current != null)
     {
         model.ConstraintList.Remove(current);
         current = null;
         UpdateDialog();
     }
 }
예제 #2
0
 private void deleteButton_Click(object sender, EventArgs e)
 {
     if (current != null)
     {
         model.ConstraintList.Remove(current);
         current = null;
         UpdateDialog();
     }
 }
예제 #3
0
 private void constraintsListBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     current = (Canguro.Model.Constraint)constraintsListBox.SelectedItem;
     editButton.Enabled = (current != null);
     deleteButton.Enabled = (current != null);
 }
예제 #4
0
 private void addButton_Click(object sender, EventArgs e)
 {
     current = new Canguro.Model.Constraint();
     wizardControl.SelectTab(1);
 }
예제 #5
0
 private void constraintsListBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     current              = (Canguro.Model.Constraint)constraintsListBox.SelectedItem;
     editButton.Enabled   = (current != null);
     deleteButton.Enabled = (current != null);
 }
예제 #6
0
 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();
 }