コード例 #1
0
 public EditAsAndCs(AreasAndConditions AAC)
 {
     AsAndCs    = AAC;
     oldAsAndCs = AAC;
     InitializeComponent();
     Title = AAC.Title;
 }
コード例 #2
0
 public EditAsAndCs(AreasAndConditions AAC)
 {
     AsAndCs = AAC;
     oldAsAndCs = AAC;
     InitializeComponent();
     Title = AAC.Title;
 }
コード例 #3
0
 public EditAsAndCs()
 {
     AsAndCs    = new AreasAndConditions();
     oldAsAndCs = new AreasAndConditions();
     InitializeComponent();
     Title = "Unknown";
 }
コード例 #4
0
 public EditAsAndCs()
 {
     AsAndCs = new AreasAndConditions();
     oldAsAndCs = new AreasAndConditions();
     InitializeComponent();
     Title = "Unknown";
 }
コード例 #5
0
ファイル: NewAAC.xaml.cs プロジェクト: MichaelTJ/QuickOverlay
 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();
 }
コード例 #6
0
 public EditText(AreasAndConditions AsAndCsIn, string area)
 {
     InitializeComponent();
     AsAndCs = AsAndCsIn;
     isArea = true;
     areaIn = area;
     txtBlockOld.Text = area;
     txtBoxNew.Text = area;
 }
コード例 #7
0
 public EditText(AreasAndConditions AsAndCsIn, string area)
 {
     InitializeComponent();
     AsAndCs          = AsAndCsIn;
     isArea           = true;
     areaIn           = area;
     txtBlockOld.Text = area;
     txtBoxNew.Text   = area;
 }
コード例 #8
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];
     }
 }
コード例 #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();
        }
コード例 #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;
 }
コード例 #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;
 }
コード例 #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);
 }
コード例 #13
0
 public EditText(AreasAndConditions AsAndCsIn)
 {
     InitializeComponent();
     AsAndCs = AsAndCsIn;
 }
コード例 #14
0
 private void btnCancel_Click(object sender, RoutedEventArgs e)
 {
     AsAndCs = oldAsAndCs;
     Close();
 }
コード例 #15
0
 public EditText(AreasAndConditions AsAndCsIn)
 {
     InitializeComponent();
     AsAndCs = AsAndCsIn;
 }
コード例 #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);
 }
コード例 #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];
     }
 }
コード例 #18
0
 private void btnCancel_Click(object sender, RoutedEventArgs e)
 {
     AsAndCs = oldAsAndCs;
     Close();
 }