private void AddClassification_Click(object sender, EventArgs e) { MOG_Privileges privs = MOG_ControllerProject.GetPrivileges(); if (privs.GetUserPrivilege(MOG_ControllerProject.GetUserName(), MOG_PRIVILEGE.AddClassification)) { ToolStripItem item = sender as ToolStripItem; if (item != null) { ContextMenuStrip strip = item.Owner as ContextMenuStrip; if (strip != null) { MogControl_FullTreeView treeview = strip.SourceControl as MogControl_FullTreeView; if (treeview != null) { TreeNode node = treeview.SelectedNode; if (node != null) { ClassificationCreateForm form = new ClassificationCreateForm(node.FullPath); if (form.ShowDialog(treeview.TopLevelControl) == DialogResult.OK) { Classification = form.FullClassificationName; treeview.Initialize(DrillToClassification); } } } } } } else { MOG_Prompt.PromptResponse("Insufficient Privileges", "Your privileges do not allow you to add classifications to the project."); } }
public BrowseClassTreeForm() { // // Required for Windows Form Designer support // InitializeComponent(); mBaseLeafTreeView.Initialize(); }