private void neweventToolStripMenuItem_Click( object sender, EventArgs e )
		{
			// Must store parent before adding child.
			Store();

			DBObjects.ProjectTask task = new DBObjects.ProjectTask();
			task.ProjectID = item.ID;

			ProjectTaskEditForm form = new ProjectTaskEditForm( item, task );
			if ( form.ShowDialog( this ) == DialogResult.OK )
			{
				FillProjectTaskList();
			}
		}
Example #2
0
		private void neweventToolStripMenuItem_Click( object sender, EventArgs e )
		{
			if ( projectListView.SelectedItems.Count == 1 )
			{
				DBObjects.Project project =
					projectListView.SelectedItems[0].Tag as DBObjects.Project;

				DBObjects.ProjectTask task = new DBObjects.ProjectTask();
				task.ProjectID = project.ID;

				ProjectTaskEditForm form = new ProjectTaskEditForm( project, task );
				if ( form.ShowDialog( this ) == DialogResult.OK )
				{
					UpdateProjectInfoPanel();
					UpdateUI();
				}
			}
		}
		private void editticketeventToolStripMenuItem_Click( object sender, EventArgs e )
		{
			DBObjects.ProjectTask evt = projectTaskListView.SelectedItems[0].Tag as
				DBObjects.ProjectTask;

			ProjectTaskEditForm form = new ProjectTaskEditForm( item, evt );
			if ( form.ShowDialog( this ) == DialogResult.OK )
			{
				FillProjectTaskList();
				UpdateInfoPanel();
			}
		}