Summary description for NewTaskForm.
Inheritance: System.Windows.Forms.Form
Beispiel #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));
                }
            }
        }
Beispiel #2
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));
				}
			}
		}