public EditAsAndCs(AreasAndConditions AAC) { AsAndCs = AAC; oldAsAndCs = AAC; InitializeComponent(); Title = AAC.Title; }
public EditAsAndCs() { AsAndCs = new AreasAndConditions(); oldAsAndCs = new AreasAndConditions(); InitializeComponent(); Title = "Unknown"; }
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; }
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]; } }
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); }
public EditText(AreasAndConditions AsAndCsIn) { InitializeComponent(); AsAndCs = AsAndCsIn; }
private void btnCancel_Click(object sender, RoutedEventArgs e) { AsAndCs = oldAsAndCs; Close(); }
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]; } }