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";
 }
Example #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();
 }
Example #6
0
 public EditText(AreasAndConditions AsAndCsIn, string area)
 {
     InitializeComponent();
     AsAndCs = AsAndCsIn;
     isArea = true;
     areaIn = area;
     txtBlockOld.Text = area;
     txtBoxNew.Text = area;
 }
Example #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];
     }
 }
Example #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();
        }
Example #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;
 }
Example #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;
 }
Example #12
0
 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);
 }
Example #13
0
 public EditText(AreasAndConditions AsAndCsIn)
 {
     InitializeComponent();
     AsAndCs = AsAndCsIn;
 }
 private void btnCancel_Click(object sender, RoutedEventArgs e)
 {
     AsAndCs = oldAsAndCs;
     Close();
 }
Example #15
0
 public EditText(AreasAndConditions AsAndCsIn)
 {
     InitializeComponent();
     AsAndCs = AsAndCsIn;
 }
Example #16
0
 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);
 }
Example #17
0
 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();
 }