public EditAsAndCs(AreasAndConditions AAC)
 {
     AsAndCs    = AAC;
     oldAsAndCs = AAC;
     InitializeComponent();
     Title = AAC.Title;
 }
 public EditAsAndCs(AreasAndConditions AAC)
 {
     AsAndCs = AAC;
     oldAsAndCs = AAC;
     InitializeComponent();
     Title = AAC.Title;
 }
 public EditAsAndCs()
 {
     AsAndCs    = new AreasAndConditions();
     oldAsAndCs = new AreasAndConditions();
     InitializeComponent();
     Title = "Unknown";
 }
 public EditAsAndCs()
 {
     AsAndCs = new AreasAndConditions();
     oldAsAndCs = new AreasAndConditions();
     InitializeComponent();
     Title = "Unknown";
 }
Beispiel #5
0
 private void btnSave_Click(object sender, RoutedEventArgs e)
 {
     AreasAndConditions newAAC = new AreasAndConditions(txtBoxName.Text);
     AACList.Add(newAAC);
     EditAsAndCs EAAC = new EditAsAndCs(newAAC);
     EAAC.ShowDialog();
     Close();
 }
 public EditText(AreasAndConditions AsAndCsIn, string area)
 {
     InitializeComponent();
     AsAndCs = AsAndCsIn;
     isArea = true;
     areaIn = area;
     txtBlockOld.Text = area;
     txtBoxNew.Text = area;
 }
Beispiel #7
0
 public EditText(AreasAndConditions AsAndCsIn, string area)
 {
     InitializeComponent();
     AsAndCs          = AsAndCsIn;
     isArea           = true;
     areaIn           = area;
     txtBlockOld.Text = area;
     txtBoxNew.Text   = area;
 }
 private void AandCList_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     //here to update the current A&C options
     //when a new one is added
     if (e.Action == NotifyCollectionChangedAction.Add)
     {
         AandC = AandCList[AandCList.Count - 1];
     }
 }
Beispiel #9
0
        private void btnSave_Click(object sender, RoutedEventArgs e)
        {
            AreasAndConditions newAAC = new AreasAndConditions(txtBoxName.Text);

            AACList.Add(newAAC);
            EditAsAndCs EAAC = new EditAsAndCs(newAAC);

            EAAC.ShowDialog();
            Close();
        }
Beispiel #10
0
 public EditText(AreasAndConditions AsAndCsIn, string area, string condition)
 {
     InitializeComponent();
     AsAndCs          = AsAndCsIn;
     isCondition      = true;
     areaIn           = area;
     conditionIn      = condition;
     txtBlockOld.Text = condition;
     txtBoxNew.Text   = condition;
 }
Beispiel #11
0
 public EditText(AreasAndConditions AsAndCsIn, string area, string condition)
 {
     InitializeComponent();
     AsAndCs = AsAndCsIn;
     isCondition = true;
     areaIn = area;
     conditionIn = condition;
     txtBlockOld.Text = condition;
     txtBoxNew.Text = condition;
 }
 private void ResetComboBoxes()
 {
     dontRunSelectionChanged = true;
     AandC = AandCList[OverlayComboBox.SelectedIndex];
     AreasComboBox.ItemsSource     = null;
     AreasComboBox.ItemsSource     = AandC.GetAreas();
     CriteriasComboBox.ItemsSource = new string[] { "Select an Area" };
     //comboBox.SelectedIndex = 0;
     //AreasComboBox.SelectedItem = null;
     dontRunSelectionChanged = false;
     curRect = RectArea;
     setCurComboBox(AreasComboBox);
 }
Beispiel #13
0
 public EditText(AreasAndConditions AsAndCsIn)
 {
     InitializeComponent();
     AsAndCs = AsAndCsIn;
 }
 private void btnCancel_Click(object sender, RoutedEventArgs e)
 {
     AsAndCs = oldAsAndCs;
     Close();
 }
Beispiel #15
0
 public EditText(AreasAndConditions AsAndCsIn)
 {
     InitializeComponent();
     AsAndCs = AsAndCsIn;
 }
 private void ResetComboBoxes()
 {
     dontRunSelectionChanged = true;
     AandC = AandCList[OverlayComboBox.SelectedIndex];
     AreasComboBox.ItemsSource = null;
     AreasComboBox.ItemsSource = AandC.GetAreas();
     CriteriasComboBox.ItemsSource = new string[] { "Select an Area" };
     //comboBox.SelectedIndex = 0;
     //AreasComboBox.SelectedItem = null;
     dontRunSelectionChanged = false;
     curRect = RectArea;
     setCurComboBox(AreasComboBox);
 }
 private void AandCList_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
 {
     //here to update the current A&C options
     //when a new one is added
     if (e.Action == NotifyCollectionChangedAction.Add)
     {
         AandC = AandCList[AandCList.Count-1];
     }
 }
 private void btnCancel_Click(object sender, RoutedEventArgs e)
 {
     AsAndCs = oldAsAndCs;
     Close();
 }