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

  ApplicationContext/
    App.cs
    Form1.cs
    Form1.resx
    MainFormManager.cs
  Business Interfaces/
    Displayable_Interface.cs
    MaseBusinessObj_Interface.cs
    WorkspaceInteraction_Interface.cs
  Busniess Objs/
    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
  DLL Lib/
    Interop.SBSDKComWrapperLib.dll
    Interop.TEXT3D_WRAPPERLib.dll
    Interop.TrackerDllLib.dll
    Tao.Cg.dll
    Tao.DevIl.dll
    Tao.Glfw.dll
    Tao.Glut.dll
    Tao.OpenAl.dll
    Tao.OpenGl.dll
    Tao.Platform.Windows.dll
    Tao.Sdl.dll
  HCI Objs/
    ControlPoint.cs
    CustomTreeNode.cs
    CustomTreeView.cs
    Dashboard.cs
    Dashboard.resx
    EStoryForm.cs
    EStoryForm.resx
    IOSelectObject.cs
    InterfaceGrid.cs
    InterfaceObject.cs
    List.cs
    ListNode.cs
    LogFile.cs
    MenuForm.cs
    MenuForm.resx
    MoveAbleSpline.cs
    NonMoveAbleSpline.cs
    ObjectButton.cs
    Old_MoveAbleSpline.cs
    PenCalibration.cs
    PenCalibration.resx
    RNTObject.cs
    Spline.cs
    StartupScreen.cs
    StartupScreen.resx
    StorageButton.cs
    Study_Project.cs
    Study_Project.resx
    TabletUI.cs
    TabletUI.resx
    Workspace.cs
    Workspace.resx
    testCalibration.cs
    testCalibration.resx
  Sendbox/
    ImageDisplayForm.cs
    ImageDisplayForm.resx
  Test/
    Test1.cs
  Web References/
    MaseWS/
  App.ico
  ApplicationProperties.cs
  AssemblyInfo.cs
  CardLocationWith4Corners.cs
  ControlPointMove_mask.bmp
  ControlPointMove_pic.bmp
  ControlPoint_mask.bmp
  ControlPoint_pic.bmp
  HandWrittenObj.cs
  HandwrittenStoryCard.cs
  Interop.SBSDKComWrapperLib.dll
  Iteration.cs
  Iteration.resx
  MASE_bug.gif
  MASE_feature.gif
  MASE_refactor.gif
  MaseListen.cs
  MaseUpdate.cs
  PenCalibration.resx
  ProcessNode.cs
  ProjectNode.cs
  RegisterObj.cs
  Serializer.cs
  SingleWS.cs
  StartupScreen.resx
  StoryObj.cs
  Study_Project.resx
  TableWhiteboard_HCI_Intergration.csproj
  TableWhiteboard_HCI_Intergration.csproj.user
  TableWhiteboard_HCI_Intergration.sln
  TabletContentandUtil.cs
  Thumbs.db
  Utility.cs
  VLabel.cs
  VLabel.resx
  areaMove_mask.bmp
  areaMove_pic.bmp
  areaResize_mask.bmp
  areaResize_pic.bmp
  point.bmp
  resize4_mask.bmp
  resize4_pic.bmp
  testCalibration.resx