N� que mant�m um projeto
Inheritance: System.Windows.Forms.TreeNode
Example #1
0
        private void _menuItemNewTask_Click(object sender, System.EventArgs e)
        {
            ProjectTreeNode node = _tvProjects.SelectedNode as ProjectTreeNode;

            if (null != node)
            {
                NewTaskForm dlg = new NewTaskForm();
                if (DialogResult.OK == dlg.ShowDialog(this))
                {
                    ExecuteCommand(new AddTaskCommand(node.Project.ID, dlg.Task));
                }
            }
        }
Example #2
0
        private void _tvProjects_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
        {
            ProjectTreeNode node = e.Node as ProjectTreeNode;

            if (null != node)
            {
                _tvProjects.ContextMenu = _menuProject;
                node.RefreshTaskView(_lvTasks);
            }
            else
            {
                _tvProjects.ContextMenu = null;
                _lvTasks.Items.Clear();
            }
        }