Exemplo n.º 1
0
        private void MenuItem_Click_GroupsNew(object sender, RoutedEventArgs e)
        {
            Group       newGroup    = new Group();
            GroupWindow groupWindow = new GroupWindow(ref services, ref newGroup, EditMode.New);

            groupWindow.ShowDialog();
            LoadData(services.GetGroups());
        }
Exemplo n.º 2
0
        private void MenuItem_Click_GroupsUpdate(object sender, RoutedEventArgs e)
        {
            TreeViewItem selectedTreeViewItem = treeView.SelectedItem as TreeViewItem;
            Group        group       = selectedTreeViewItem.Tag as Group;
            GroupWindow  groupWindow = new GroupWindow(ref services, ref group, EditMode.Update);

            groupWindow.ShowDialog();
            LoadData(services.GetGroups());
        }
Exemplo n.º 3
0
        private void MenuItem_Click_GroupsInfo(object sender, RoutedEventArgs e)
        {
            TreeViewItem selectedTreeViewItem = treeView.SelectedItem as TreeViewItem;
            Group        group       = selectedTreeViewItem.Tag as Group;
            GroupWindow  groupWindow = new GroupWindow(ref services, ref group, EditMode.Info);

            groupWindow.ShowDialog();
            selectedTreeViewItem.IsExpanded = true;
        }
Exemplo n.º 4
0
 private void MenuItem_Click_GroupsUpdate(object sender, RoutedEventArgs e)
 {
     TreeViewItem selectedTreeViewItem = treeView.SelectedItem as TreeViewItem;
     Group group = selectedTreeViewItem.Tag as Group;
     GroupWindow groupWindow = new GroupWindow(ref services, ref group, EditMode.Update);
     groupWindow.ShowDialog();
     LoadData(services.GetGroups());
 }
Exemplo n.º 5
0
 private void MenuItem_Click_GroupsNew(object sender, RoutedEventArgs e)
 {
     Group newGroup = new Group();
     GroupWindow groupWindow = new GroupWindow(ref services, ref newGroup, EditMode.New);
     groupWindow.ShowDialog();
     LoadData(services.GetGroups());
 }
Exemplo n.º 6
0
 private void MenuItem_Click_GroupsInfo(object sender, RoutedEventArgs e)
 {
     TreeViewItem selectedTreeViewItem = treeView.SelectedItem as TreeViewItem;
     Group group = selectedTreeViewItem.Tag as Group;
     GroupWindow groupWindow = new GroupWindow(ref services, ref group, EditMode.Info);
     groupWindow.ShowDialog();
     selectedTreeViewItem.IsExpanded = true;
 }