Beispiel #1
0
 private void btnRename_Click(object sender, RoutedEventArgs e)
 {
     if (null == SelectedCategory)
         return;
     CategoryDialog dlg = new CategoryDialog();
     dlg.CategoryName = SelectedCategory.UnderlyingData.name;
     dlg.Type = SelectedCategory.UnderlyingData.type;
     if (true != dlg.ShowDialog())
         return;
     AccountancyApplication.ChangeCategory(SelectedCategory, dlg.CategoryName, dlg.Type);
 }
Beispiel #2
0
 private void btnAdd_Click(object sender, RoutedEventArgs e)
 {
     CategoryDialog dlg = new CategoryDialog();
     if (true != dlg.ShowDialog())
         return;
     AccountancyApplication.AddCategory(dlg.CategoryName, dlg.Type);
 }