private void addtaggroup_click(object sender, RoutedEventArgs e) { editmode = TagEditMode.AddTagGroup; var taggroup = new TagGroup(); formgrid.DataContext = taggroup; ShowFormGrid(true); }
private void editgroup_click(object sender, RoutedEventArgs e) { editmode = TagEditMode.EditTagGroup; var data = ((TreeViewItem)tagtree.SelectedItem).DataContext as TagGroup; formgrid.DataContext = data; ShowFormGrid(true); }
private void addtag_click(object sender, RoutedEventArgs e) { editmode = TagEditMode.AddTag; var tag = new Tag(); var selectedgroup = ((TreeViewItem)tagtree.SelectedItem).DataContext as TagGroup; tag.Group = selectedgroup; formgrid.DataContext = tag; ShowFormGrid(true); }
private void edittag_click(object sender, RoutedEventArgs e) { editmode = TagEditMode.EditTag; var data = ((TreeViewItem) tagtree.SelectedItem).DataContext as Tag; formgrid.DataContext = data; ShowFormGrid(true); }