Code Search for Developers
 
 
  

Iteration.cs from MASE: Agile Software Engineering at Krugle


Show Iteration.cs syntax highlighted

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using Whiteboard.MaseWS;
using EStory;

namespace Whiteboard
{
	public class CreateIteration : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Button ok_bt;
		private System.Windows.Forms.Button cancel_bt;

		private System.Windows.Forms.Label iterationName_lb;
		private System.Windows.Forms.Label endDate_lb;
		private System.Windows.Forms.Label projectName_lb;
		private System.Windows.Forms.Label projectNameDetail_lb;
		private System.Windows.Forms.DateTimePicker endDate_dtp;
		private System.Windows.Forms.TextBox iterationName_tb;
		private System.Windows.Forms.Label description_lb;
		private System.Windows.Forms.RichTextBox description_rtb;
		private System.Windows.Forms.Label optional_lb;
		private System.ComponentModel.Container components = null;
		private webServicesService ws;
		private ProjectVO myProject;
		private TabletVO newIteration;

		public CreateIteration()
		{
			InitializeComponent();
			
			DateTime selectedDate = endDate_dtp.Value;
			iterationName_tb.Text = "Iteration " + selectedDate.Day.ToString() + "." + selectedDate.Month.ToString() + "." + selectedDate.Year.ToString();
		}

		public CreateIteration(ProjectVO p, webServicesService w, ref TabletVO newIteration)
		{
			InitializeComponent();

			ws =w;
			DateTime selectedDate = endDate_dtp.Value;
			iterationName_tb.Text = "Iteration " + selectedDate.Day.ToString() + "." + selectedDate.Month.ToString() + "." + selectedDate.Year.ToString();
			myProject = p;
			this.newIteration = newIteration;
		}

		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}
		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.iterationName_lb = new System.Windows.Forms.Label();
			this.ok_bt = new System.Windows.Forms.Button();
			this.cancel_bt = new System.Windows.Forms.Button();
			this.endDate_lb = new System.Windows.Forms.Label();
			this.projectName_lb = new System.Windows.Forms.Label();
			this.projectNameDetail_lb = new System.Windows.Forms.Label();
			this.endDate_dtp = new System.Windows.Forms.DateTimePicker();
			this.iterationName_tb = new System.Windows.Forms.TextBox();
			this.description_lb = new System.Windows.Forms.Label();
			this.description_rtb = new System.Windows.Forms.RichTextBox();
			this.optional_lb = new System.Windows.Forms.Label();
			this.SuspendLayout();
			// 
			// iterationName_lb
			// 
			this.iterationName_lb.Location = new System.Drawing.Point(32, 88);
			this.iterationName_lb.Name = "iterationName_lb";
			this.iterationName_lb.Size = new System.Drawing.Size(100, 21);
			this.iterationName_lb.TabIndex = 1;
			this.iterationName_lb.Text = "Iteration Name:";
			// 
			// ok_bt
			// 
			this.ok_bt.Location = new System.Drawing.Point(184, 256);
			this.ok_bt.Name = "ok_bt";
			this.ok_bt.Size = new System.Drawing.Size(104, 32);
			this.ok_bt.TabIndex = 4;
			this.ok_bt.Text = "Create Iteration";
			this.ok_bt.Click += new System.EventHandler(this.ok_bt_Click);
			// 
			// cancel_bt
			// 
			this.cancel_bt.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.cancel_bt.Location = new System.Drawing.Point(296, 256);
			this.cancel_bt.Name = "cancel_bt";
			this.cancel_bt.Size = new System.Drawing.Size(72, 32);
			this.cancel_bt.TabIndex = 5;
			this.cancel_bt.Text = "Cancel";
			this.cancel_bt.Click += new System.EventHandler(this.cancel_bt_Click);
			// 
			// endDate_lb
			// 
			this.endDate_lb.Location = new System.Drawing.Point(32, 56);
			this.endDate_lb.Name = "endDate_lb";
			this.endDate_lb.Size = new System.Drawing.Size(100, 21);
			this.endDate_lb.TabIndex = 7;
			this.endDate_lb.Text = "End Date:";
			// 
			// projectName_lb
			// 
			this.projectName_lb.Location = new System.Drawing.Point(32, 16);
			this.projectName_lb.Name = "projectName_lb";
			this.projectName_lb.Size = new System.Drawing.Size(100, 21);
			this.projectName_lb.TabIndex = 8;
			this.projectName_lb.Text = "Project Name:";
			// 
			// projectNameDetail_lb
			// 
			this.projectNameDetail_lb.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.projectNameDetail_lb.Location = new System.Drawing.Point(136, 16);
			this.projectNameDetail_lb.Name = "projectNameDetail_lb";
			this.projectNameDetail_lb.Size = new System.Drawing.Size(208, 23);
			this.projectNameDetail_lb.TabIndex = 12;
			this.projectNameDetail_lb.Text = "NAME OF THE PROJECT";
			// 
			// endDate_dtp
			// 
			this.endDate_dtp.Location = new System.Drawing.Point(136, 56);
			this.endDate_dtp.Name = "endDate_dtp";
			this.endDate_dtp.Size = new System.Drawing.Size(184, 20);
			this.endDate_dtp.TabIndex = 14;
			this.endDate_dtp.ValueChanged += new System.EventHandler(this.endDate_dtp_ValueChanged);
			// 
			// iterationName_tb
			// 
			this.iterationName_tb.Location = new System.Drawing.Point(136, 88);
			this.iterationName_tb.Name = "iterationName_tb";
			this.iterationName_tb.Size = new System.Drawing.Size(184, 20);
			this.iterationName_tb.TabIndex = 15;
			this.iterationName_tb.Text = "Name of the Iteration";
			// 
			// description_lb
			// 
			this.description_lb.Location = new System.Drawing.Point(32, 120);
			this.description_lb.Name = "description_lb";
			this.description_lb.TabIndex = 16;
			this.description_lb.Text = "Description:";
			// 
			// description_rtb
			// 
			this.description_rtb.Location = new System.Drawing.Point(136, 120);
			this.description_rtb.Name = "description_rtb";
			this.description_rtb.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.ForcedVertical;
			this.description_rtb.Size = new System.Drawing.Size(232, 128);
			this.description_rtb.TabIndex = 17;
			this.description_rtb.Text = "";
			// 
			// optional_lb
			// 
			this.optional_lb.Location = new System.Drawing.Point(32, 136);
			this.optional_lb.Name = "optional_lb";
			this.optional_lb.Size = new System.Drawing.Size(56, 23);
			this.optional_lb.TabIndex = 18;
			this.optional_lb.Text = "(Optional)";
			// 
			// CreateIteration
			// 
			this.AcceptButton = this.ok_bt;
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.CancelButton = this.cancel_bt;
			this.ClientSize = new System.Drawing.Size(408, 302);
			this.Controls.Add(this.optional_lb);
			this.Controls.Add(this.description_rtb);
			this.Controls.Add(this.description_lb);
			this.Controls.Add(this.iterationName_tb);
			this.Controls.Add(this.endDate_dtp);
			this.Controls.Add(this.projectNameDetail_lb);
			this.Controls.Add(this.projectName_lb);
			this.Controls.Add(this.endDate_lb);
			this.Controls.Add(this.cancel_bt);
			this.Controls.Add(this.ok_bt);
			this.Controls.Add(this.iterationName_lb);
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "CreateIteration";
			this.Text = "Create an Iteration";
			this.ResumeLayout(false);

		}
		#endregion

		private void ok_bt_Click(object sender, System.EventArgs e)
		{
			
			//TabletVO i = new TabletVO();
			this.newIteration.tabletProcess = new TabletProcessVO();
		
			this.newIteration.projectID  = myProject.id;
			this.newIteration.parentID = myProject.id;
			this.newIteration.projectName = myProject.name;

			this.newIteration.iterationName = iterationName_tb.Text;
			this.newIteration.tabletProcess.name = iterationName_tb.Text;
			this.newIteration.tabletProcess.description = description_rtb.Text;
			this.newIteration.tabletProcess.processType = EStoryForm.ITERATION;
			this.Close();
		}

		private void endDate_dtp_ValueChanged(object sender, System.EventArgs e)
		{
			DateTime selectedDate = endDate_dtp.Value;
			iterationName_tb.Text = "Iteration " + selectedDate.Day.ToString() + "." + selectedDate.Month.ToString() + "." + selectedDate.Year.ToString();
		}

		private void cancel_bt_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}
	}
}




See more files for this project here

MASE: Agile Software Engineering

The MASE project investigates methods to support the coordination and executable acceptance testing of software projects. Keywords: Agile methods, distributed teams, Extreme Programming. See http://ebe.cpsc.ucalgary.ca/ebe for more information.

Project homepage: http://sourceforge.net/projects/mase
Programming language(s): Java,XML
License: other

  ApplicationProperties.cs
  CardLocationWith4Corners.cs
  HandWrittenObj.cs
  HandwrittenStoryCard.cs
  Iteration.cs
  Iteration.resx
  MaseListen.cs
  MaseUpdate.cs
  ProcessNode.cs
  ProjectNode.cs
  RegisterObj.cs
  Serializer.cs
  SingleWS.cs
  StoryObj.cs
  TabletContentandUtil.cs
  Utility.cs
  VLabel.cs
  VLabel.resx