protected void OnBtnModifyClicked(object sender, System.EventArgs e) { NodeSelection ns = view.NodeSelection; if ( ns.SelectedNodes.Length > 0 ) { TaskTypeTreeNode ttt = (TaskTypeTreeNode)ns.SelectedNode; TaskType t = ttt.GetTaskType(); TaskTypeWindow ttw = new TaskTypeWindow(t); ttw.Show(); } }
protected void OnBtnNewClicked(object sender, System.EventArgs e) { TaskTypeWindow ttw = new TaskTypeWindow(null); ttw.Show(); }