Example #1
0
 private void miAdd_Click(object sender, RoutedEventArgs e)
 {
     if (this.Tree.SelectedItem != null)
     {
         TreeItem          item    = this.Tree.SelectedItem as TreeItem;
         AccountTypeEditor tEditor = new AccountTypeEditor();
         tEditor.ParentOrgan = item.Tag as Organization;
         tEditor.Show();
         tEditor.Closed += new EventHandler(tEditor_Closed);
     }
 }
Example #2
0
 private void miProp_Click(object sender, RoutedEventArgs e)
 {
     if (this.Tree.SelectedItem != null)
     {
         TreeItem          item    = this.Tree.SelectedItem as TreeItem;
         AccountTypeEditor tEditor = new AccountTypeEditor();
         tEditor.Organization = item.Tag as Organization;
         tEditor.Show();
         tEditor.Closed += (s, e2) =>
         {
             item.Name = tEditor.Organization.Name;
         };
     }
 }