private void EditStepButton_Click(object sender, EventArgs e)
 {
     foreach (ListViewItem Item in BuildStepList.SelectedItems)
     {
         BuildStepWindow EditStep = new BuildStepWindow((BuildStep)Item.Tag, TargetNames, BaseDirectory, Variables);
         EditStep.ShowDialog();
         Item.Text = ((BuildStep)Item.Tag).Description;
         break;
     }
 }
		private void EditStepButton_Click(object sender, EventArgs e)
		{
			foreach(ListViewItem Item in BuildStepList.SelectedItems)
			{
				BuildStepWindow EditStep = new BuildStepWindow((BuildStep)Item.Tag, TargetNames, BaseDirectory, Variables);
				EditStep.ShowDialog();
				Item.Text = ((BuildStep)Item.Tag).Description;
				break;
			}
		}
		private void NewStepButton_Click(object sender, EventArgs e)
		{
			BuildStep NewStep = new BuildStep(Guid.NewGuid(), BuildStepList.Items.Count, "Untitled Step", "Running Untitled Step...", 1, null, null, null, null, true);
			NewStep.Description = "Untitled Task";
			NewStep.EstimatedDuration = 1;

			BuildStepWindow NewStepWindow = new BuildStepWindow(NewStep, TargetNames, BaseDirectory, Variables);
			if(NewStepWindow.ShowDialog() == DialogResult.OK)
			{
				AddTask(NewStep);
			}
		}
        private void NewStepButton_Click(object sender, EventArgs e)
        {
            BuildStep NewStep = new BuildStep(Guid.NewGuid(), BuildStepList.Items.Count, "Untitled Step", "Running Untitled Step...", 1, null, null, null, null, true);

            NewStep.Description       = "Untitled Task";
            NewStep.EstimatedDuration = 1;

            BuildStepWindow NewStepWindow = new BuildStepWindow(NewStep, TargetNames, BaseDirectory, Variables);

            if (NewStepWindow.ShowDialog() == DialogResult.OK)
            {
                AddTask(NewStep);
            }
        }