Show EStoryForm.cs syntax highlighted
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Xml;
using System.Web.Services;
using System.Net;
using System.Threading;
using Microsoft.Ink;
using Whiteboard.MaseWS;
using Whiteboard;
using New_Study_Project;
//
namespace EStory
{
/// <summary>
/// Summary description for Form1.
/// </summary>
/// hello
public class EStoryForm : System.Windows.Forms.Form
{
private System.ComponentModel.IContainer components;
private System.Windows.Forms.MainMenu mainMenu1;
private System.Windows.Forms.MenuItem menuItem10;
private System.Windows.Forms.ToolBar mainToolBar;
private System.Windows.Forms.ToolBarButton toolBarButton_updateStory;
private System.Windows.Forms.Panel mainPanel;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Panel topPanel;
private System.Windows.Forms.Panel effortPanel;
private System.Windows.Forms.Panel activityTypePanel;
private System.Windows.Forms.Panel pairProgrammerPanel;
private System.Windows.Forms.Panel primaryProgramerPanel;
private System.Windows.Forms.Panel ebProcessTypePenal;
private System.Windows.Forms.Panel namePanel;
private System.Windows.Forms.Panel iterationPenal;
private System.Windows.Forms.Panel descriptionPanel;
private System.Windows.Forms.Panel iterationLabelPanel;
private System.Windows.Forms.Panel descriptionLabelPanel;
private System.Windows.Forms.Label descriptionLabel;
private System.Windows.Forms.Panel effortLabelPanel;
private System.Windows.Forms.Label effortLabel;
private System.Windows.Forms.Panel activityTypeLabelPanel;
private System.Windows.Forms.Label activityTypeLabel;
private System.Windows.Forms.Panel pairProgrammerLabelPanel;
private System.Windows.Forms.Label pairProgrammerLabel;
private System.Windows.Forms.Panel primaryProgrammerLabelPanel;
private System.Windows.Forms.Label primaryProgrammerLabel;
private System.Windows.Forms.Panel ebProcessTypeLabelPanel;
private System.Windows.Forms.Label ebProcessTypeLabel;
private System.Windows.Forms.Panel nameLabelPanel;
private System.Windows.Forms.Label nameLabel;
private System.Windows.Forms.Label iterationLabel;
private System.Windows.Forms.Panel iterationContentPanel;
private System.Windows.Forms.Panel ebProcessTypePanel;
private System.Windows.Forms.Panel primaryProgrammerContentPanel;
private System.Windows.Forms.Panel pairProgrammerContentPanel;
private System.Windows.Forms.Panel activityTypeContentPanel;
private System.Windows.Forms.Panel effortContentPanel;
private System.Windows.Forms.ComboBox iterationNameComboBox;
private System.Windows.Forms.ComboBox ebProcessTypeComboBox;
private System.Windows.Forms.ComboBox primaryProgrammerComboBox;
private System.Windows.Forms.ComboBox pairProgrammerComboBox;
private System.Windows.Forms.RadioButton featureRadioButton;
private System.Windows.Forms.RadioButton refactorRadioButton;
private System.Windows.Forms.RadioButton bugFixRadioButton;
private TabletVO storyVO = null;
private TabletVO[] iterations = null;
private TabletAgent[] agents = null;
private System.Windows.Forms.MenuItem menuItem_storyCategory;
private System.Windows.Forms.MenuItem menuItem_storyExit;
private System.Windows.Forms.MenuItem menuItem_toolsCategoty;
private System.Windows.Forms.MenuItem menuItem1_toolEraser;
private System.Windows.Forms.MenuItem menuItem1_toolEraser_cleanAll;
private System.Windows.Forms.MenuItem menuItem1_toolEraser_clean;
private System.Windows.Forms.MenuItem menuItem1_toolEraser_clean_byPoint;
private System.Windows.Forms.MenuItem menuItem1_toolEraser_clean_byStroke;
private System.Windows.Forms.MenuItem menuItem1_toolEraser_disable;
private System.Windows.Forms.MenuItem menuItem_help;
private System.Windows.Forms.MenuItem menuItem_storyUpdate;
private string[] ebProcessTypes = null;
private EventHandler updateEventHandelFromCallingProcess = null;
private InkOverlay nameInkOverlay = null;
private InkOverlay descriptionInkOverlay = null;
private System.Windows.Forms.Panel nameContentPanel;
private InkOverlay bestCaseEstimateInkOverlay = null;
private InkOverlay worstCaseEstimateInkOverlay = null;
private InkOverlay mostLikelyCaseEstimateInkOverlay = null;
//private webServicesService webService = null;
private System.Windows.Forms.TextBox storyNameTextBox;
private System.Windows.Forms.TextBox descriptionTextBox;
private System.Windows.Forms.Panel bottomPanel;
private System.Windows.Forms.GroupBox activityTypeGroupBox;
private bool handWrittenCard = false;
private long projectID = 0;
public static int TASK = 1;
public static int USERSTORY = 2;
public static int ITERATION = 3;
public static int RELEASE = 4;
public static int FEATURE = 0;
public static int BUG = 1;
public static int ENHANCEMENT = 2;
public static int NA = 3;
public static int NotAssigned = -1;
private System.Windows.Forms.ToolBarButton separator1;
private System.Windows.Forms.ToolBarButton toolBarButton_help;
private System.Windows.Forms.ToolBarButton separator2;
private System.Windows.Forms.ToolBarButton toolBarButton_pen;
private System.Windows.Forms.ToolBarButton toolBarButton_erase;
private System.Windows.Forms.ContextMenu eraser_cm;
private System.Windows.Forms.ImageList toolbarIcons;
private System.Windows.Forms.ImageList icons;
public bool moveToProductBacklog = false;
public bool iterationChanged = false;
public bool noChange = false;
private System.Windows.Forms.TextBox bestEstimateTextBox;
private System.Windows.Forms.Label bestCaseEstimateLabel;
private System.Windows.Forms.Label mostLikelyCaseEstimateLabel;
private System.Windows.Forms.TextBox mostLikelyEstimateTextBox;
private System.Windows.Forms.Label worstCaseEstimateLabel;
private System.Windows.Forms.TextBox worstEstimateTextBox;
public static long newCreatedStoryId = -1;
public EStoryForm()
{
CommonInitialization();
}
// public void setAuthentication()
// {
// CredentialCache myCache = new CredentialCache();
// NetworkCredential myNetWorkCredential = new NetworkCredential("ebeAdmin", "admin");
// myCache.Add(new Uri(webService.Url), "Basic", myNetWorkCredential);
// webService.Credentials = myCache;
// }
private void CommonInitialization()
{
//this.webService = new webServicesService();
//this.webService = SingleWS.getInstance(null);
//setAuthentication();
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
topPanel.BackgroundImage = DrawTopPanelStoryBG(topPanel.Width, topPanel.Height, Color.Blue);
bottomPanel.BackgroundImage = DrawBottomPanelStoryBG(bottomPanel.Width, bottomPanel.Height, Color.Blue);
menuItem_storyUpdate.Click += new System.EventHandler(this.menuItem_storyUpdate_Click);
menuItem_storyUpdate.Click += updateEventHandelFromCallingProcess;
menuItem_storyExit.Click += new System.EventHandler(this.menuItem_storyExit_Click);
menuItem1_toolEraser_clean_byPoint.Click += new System.EventHandler(this.byPointMenuItem_Click);
menuItem1_toolEraser_clean_byStroke.Click += new System.EventHandler(this.byStrokeMenuItem_Click);
menuItem1_toolEraser_disable.Click += new System.EventHandler(this.eraserDisableMenuItem_Click);
menuItem1_toolEraser_cleanAll.Click += new System.EventHandler(this.cleanMenuItem_Click);
this.SetStyle(ControlStyles.UserPaint, true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.DoubleBuffer, true);
}
public EStoryForm(long projectID, TabletVO[] iterations, ref TabletVO storyVO, string[] ebProcessTypes, EventHandler updateEventHandelFromCallingProcess)
{
this.storyVO = storyVO;
if(storyVO.tabletProcess.handWritten != null)
handWrittenCard = true;
this.iterations = iterations;
webServicesService ws = SingleWS.getInstance(null);
TabletAgent[] agents = ws.getAllAgentsNameAndID(projectID);
this.agents = agents;
this.ebProcessTypes = ebProcessTypes;
this.projectID = projectID;
if(updateEventHandelFromCallingProcess!=null)
this.updateEventHandelFromCallingProcess = updateEventHandelFromCallingProcess;
CommonInitialization();
if (handWrittenCard==false)
{
mainToolBar.Buttons[2].Visible = false;
mainToolBar.Buttons[3].Visible = false;
mainToolBar.Buttons[4].Visible = false;
}
if(storyVO.tabletProcess.id == Convert.ToInt64(EStoryForm.NotAssigned))
{
menuItem_storyUpdate.Text = "Save";
//menuItem_storyCategory.MenuItems.Remove(menuItem_storyOpen);
menuItem_storyExit.Text = "Close";
storyVO.tabletProcess.processType = EStoryForm.USERSTORY;
}
//
// Propagate form content
//
PropagateStoryContent();
if(handWrittenCard == true)
{
InitializePenInputPanels();
// Comment: Should have checked if the handwritten object complies to the handwritten XSD
if(!storyVO.tabletProcess.handWritten.ToString().Equals(""))
LoadPenInputPanels(storyVO.tabletProcess.handWritten.ToString());
}
else
{
// it is where typed storycard's content will be populated
menuItem1_toolEraser.MenuItems.Clear();
menuItem1_toolEraser.Text = "Refresh All";
menuItem1_toolEraser.Click += new System.EventHandler(this.cleanMenuItem_Click);
}
}
private void InitializePenInputPanels()
{
//int panHeight = 40;
nameInkOverlay = new InkOverlay(nameContentPanel.Handle);
nameInkOverlay.Enabled = true;
descriptionInkOverlay = new InkOverlay(descriptionPanel.Handle);
descriptionInkOverlay.Enabled = true;
bestCaseEstimateInkOverlay = new InkOverlay(bestEstimateTextBox.Handle);
bestCaseEstimateInkOverlay.Enabled = true;
mostLikelyCaseEstimateInkOverlay = new InkOverlay(mostLikelyEstimateTextBox.Handle);
mostLikelyCaseEstimateInkOverlay.Enabled = true;
worstCaseEstimateInkOverlay = new InkOverlay(worstEstimateTextBox.Handle);
worstCaseEstimateInkOverlay.Enabled = true;
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
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.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(EStoryForm));
this.mainMenu1 = new System.Windows.Forms.MainMenu();
this.menuItem_storyCategory = new System.Windows.Forms.MenuItem();
this.menuItem_storyUpdate = new System.Windows.Forms.MenuItem();
this.menuItem10 = new System.Windows.Forms.MenuItem();
this.menuItem_storyExit = new System.Windows.Forms.MenuItem();
this.menuItem_toolsCategoty = new System.Windows.Forms.MenuItem();
this.menuItem1_toolEraser = new System.Windows.Forms.MenuItem();
this.menuItem1_toolEraser_cleanAll = new System.Windows.Forms.MenuItem();
this.menuItem1_toolEraser_clean = new System.Windows.Forms.MenuItem();
this.menuItem1_toolEraser_clean_byPoint = new System.Windows.Forms.MenuItem();
this.menuItem1_toolEraser_clean_byStroke = new System.Windows.Forms.MenuItem();
this.menuItem1_toolEraser_disable = new System.Windows.Forms.MenuItem();
this.menuItem_help = new System.Windows.Forms.MenuItem();
this.mainToolBar = new System.Windows.Forms.ToolBar();
this.toolBarButton_updateStory = new System.Windows.Forms.ToolBarButton();
this.separator1 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton_pen = new System.Windows.Forms.ToolBarButton();
this.toolBarButton_erase = new System.Windows.Forms.ToolBarButton();
this.eraser_cm = new System.Windows.Forms.ContextMenu();
this.separator2 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton_help = new System.Windows.Forms.ToolBarButton();
this.toolbarIcons = new System.Windows.Forms.ImageList(this.components);
this.mainPanel = new System.Windows.Forms.Panel();
this.bottomPanel = new System.Windows.Forms.Panel();
this.descriptionPanel = new System.Windows.Forms.Panel();
this.descriptionTextBox = new System.Windows.Forms.TextBox();
this.descriptionLabelPanel = new System.Windows.Forms.Panel();
this.descriptionLabel = new System.Windows.Forms.Label();
this.topPanel = new System.Windows.Forms.Panel();
this.effortPanel = new System.Windows.Forms.Panel();
this.effortContentPanel = new System.Windows.Forms.Panel();
this.bestEstimateTextBox = new System.Windows.Forms.TextBox();
this.effortLabelPanel = new System.Windows.Forms.Panel();
this.effortLabel = new System.Windows.Forms.Label();
this.activityTypePanel = new System.Windows.Forms.Panel();
this.activityTypeContentPanel = new System.Windows.Forms.Panel();
this.activityTypeGroupBox = new System.Windows.Forms.GroupBox();
this.bugFixRadioButton = new System.Windows.Forms.RadioButton();
this.icons = new System.Windows.Forms.ImageList(this.components);
this.refactorRadioButton = new System.Windows.Forms.RadioButton();
this.featureRadioButton = new System.Windows.Forms.RadioButton();
this.activityTypeLabelPanel = new System.Windows.Forms.Panel();
this.activityTypeLabel = new System.Windows.Forms.Label();
this.pairProgrammerPanel = new System.Windows.Forms.Panel();
this.pairProgrammerContentPanel = new System.Windows.Forms.Panel();
this.pairProgrammerComboBox = new System.Windows.Forms.ComboBox();
this.pairProgrammerLabelPanel = new System.Windows.Forms.Panel();
this.pairProgrammerLabel = new System.Windows.Forms.Label();
this.primaryProgramerPanel = new System.Windows.Forms.Panel();
this.primaryProgrammerContentPanel = new System.Windows.Forms.Panel();
this.primaryProgrammerComboBox = new System.Windows.Forms.ComboBox();
this.primaryProgrammerLabelPanel = new System.Windows.Forms.Panel();
this.primaryProgrammerLabel = new System.Windows.Forms.Label();
this.ebProcessTypePenal = new System.Windows.Forms.Panel();
this.ebProcessTypePanel = new System.Windows.Forms.Panel();
this.ebProcessTypeComboBox = new System.Windows.Forms.ComboBox();
this.ebProcessTypeLabelPanel = new System.Windows.Forms.Panel();
this.ebProcessTypeLabel = new System.Windows.Forms.Label();
this.namePanel = new System.Windows.Forms.Panel();
this.nameContentPanel = new System.Windows.Forms.Panel();
this.storyNameTextBox = new System.Windows.Forms.TextBox();
this.nameLabelPanel = new System.Windows.Forms.Panel();
this.nameLabel = new System.Windows.Forms.Label();
this.iterationPenal = new System.Windows.Forms.Panel();
this.iterationContentPanel = new System.Windows.Forms.Panel();
this.iterationNameComboBox = new System.Windows.Forms.ComboBox();
this.iterationLabelPanel = new System.Windows.Forms.Panel();
this.iterationLabel = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.bestCaseEstimateLabel = new System.Windows.Forms.Label();
this.mostLikelyCaseEstimateLabel = new System.Windows.Forms.Label();
this.mostLikelyEstimateTextBox = new System.Windows.Forms.TextBox();
this.worstCaseEstimateLabel = new System.Windows.Forms.Label();
this.worstEstimateTextBox = new System.Windows.Forms.TextBox();
this.mainPanel.SuspendLayout();
this.bottomPanel.SuspendLayout();
this.descriptionPanel.SuspendLayout();
this.descriptionLabelPanel.SuspendLayout();
this.topPanel.SuspendLayout();
this.effortPanel.SuspendLayout();
this.effortContentPanel.SuspendLayout();
this.effortLabelPanel.SuspendLayout();
this.activityTypePanel.SuspendLayout();
this.activityTypeContentPanel.SuspendLayout();
this.activityTypeGroupBox.SuspendLayout();
this.activityTypeLabelPanel.SuspendLayout();
this.pairProgrammerPanel.SuspendLayout();
this.pairProgrammerContentPanel.SuspendLayout();
this.pairProgrammerLabelPanel.SuspendLayout();
this.primaryProgramerPanel.SuspendLayout();
this.primaryProgrammerContentPanel.SuspendLayout();
this.primaryProgrammerLabelPanel.SuspendLayout();
this.ebProcessTypePenal.SuspendLayout();
this.ebProcessTypePanel.SuspendLayout();
this.ebProcessTypeLabelPanel.SuspendLayout();
this.namePanel.SuspendLayout();
this.nameContentPanel.SuspendLayout();
this.nameLabelPanel.SuspendLayout();
this.iterationPenal.SuspendLayout();
this.iterationContentPanel.SuspendLayout();
this.iterationLabelPanel.SuspendLayout();
this.SuspendLayout();
//
// mainMenu1
//
this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem_storyCategory,
this.menuItem_toolsCategoty,
this.menuItem_help});
//
// menuItem_storyCategory
//
this.menuItem_storyCategory.Index = 0;
this.menuItem_storyCategory.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem_storyUpdate,
this.menuItem10,
this.menuItem_storyExit});
this.menuItem_storyCategory.Text = "Story";
//
// menuItem_storyUpdate
//
this.menuItem_storyUpdate.Index = 0;
this.menuItem_storyUpdate.Text = "Update";
//
// menuItem10
//
this.menuItem10.Index = 1;
this.menuItem10.Text = "-";
//
// menuItem_storyExit
//
this.menuItem_storyExit.Index = 2;
this.menuItem_storyExit.Text = "Exit";
//
// menuItem_toolsCategoty
//
this.menuItem_toolsCategoty.Index = 1;
this.menuItem_toolsCategoty.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem1_toolEraser});
this.menuItem_toolsCategoty.Text = "Tools";
//
// menuItem1_toolEraser
//
this.menuItem1_toolEraser.Index = 0;
this.menuItem1_toolEraser.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem1_toolEraser_cleanAll,
this.menuItem1_toolEraser_clean,
this.menuItem1_toolEraser_disable});
this.menuItem1_toolEraser.Text = "Eraser";
//
// menuItem1_toolEraser_cleanAll
//
this.menuItem1_toolEraser_cleanAll.Index = 0;
this.menuItem1_toolEraser_cleanAll.Text = "Clean All";
//
// menuItem1_toolEraser_clean
//
this.menuItem1_toolEraser_clean.Index = 1;
this.menuItem1_toolEraser_clean.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.menuItem1_toolEraser_clean_byPoint,
this.menuItem1_toolEraser_clean_byStroke});
this.menuItem1_toolEraser_clean.Text = "Clean ...";
//
// menuItem1_toolEraser_clean_byPoint
//
this.menuItem1_toolEraser_clean_byPoint.Index = 0;
this.menuItem1_toolEraser_clean_byPoint.Text = "By Point";
//
// menuItem1_toolEraser_clean_byStroke
//
this.menuItem1_toolEraser_clean_byStroke.Index = 1;
this.menuItem1_toolEraser_clean_byStroke.Text = "By Stroke";
//
// menuItem1_toolEraser_disable
//
this.menuItem1_toolEraser_disable.Index = 2;
this.menuItem1_toolEraser_disable.Text = "Disable";
this.menuItem1_toolEraser_disable.Click += new System.EventHandler(this.eraserDisableMenuItem_Click);
//
// menuItem_help
//
this.menuItem_help.Index = 2;
this.menuItem_help.Text = "Help";
//
// mainToolBar
//
this.mainToolBar.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
this.toolBarButton_updateStory,
this.separator1,
this.toolBarButton_pen,
this.toolBarButton_erase,
this.separator2,
this.toolBarButton_help});
this.mainToolBar.DropDownArrows = true;
this.mainToolBar.ImageList = this.toolbarIcons;
this.mainToolBar.Location = new System.Drawing.Point(0, 0);
this.mainToolBar.Name = "mainToolBar";
this.mainToolBar.ShowToolTips = true;
this.mainToolBar.Size = new System.Drawing.Size(960, 42);
this.mainToolBar.TabIndex = 0;
this.mainToolBar.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.mainToolBar_ButtonClick);
//
// toolBarButton_updateStory
//
this.toolBarButton_updateStory.ImageIndex = 5;
this.toolBarButton_updateStory.Text = "Save";
this.toolBarButton_updateStory.ToolTipText = "Update story card in database";
//
// separator1
//
this.separator1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButton_pen
//
this.toolBarButton_pen.ImageIndex = 3;
this.toolBarButton_pen.Text = "Pen";
this.toolBarButton_pen.ToolTipText = "Enable pen input";
//
// toolBarButton_erase
//
this.toolBarButton_erase.DropDownMenu = this.eraser_cm;
this.toolBarButton_erase.ImageIndex = 7;
this.toolBarButton_erase.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton;
this.toolBarButton_erase.Text = "Erase";
this.toolBarButton_erase.ToolTipText = "Selects the type of eraser";
//
// eraser_cm
//
this.eraser_cm.Popup += new System.EventHandler(this.eraser_cm_Popup);
//
// separator2
//
this.separator2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
//
// toolBarButton_help
//
this.toolBarButton_help.ImageIndex = 9;
this.toolBarButton_help.Text = "Help";
this.toolBarButton_help.ToolTipText = "Display help page";
//
// toolbarIcons
//
this.toolbarIcons.ImageSize = new System.Drawing.Size(16, 16);
this.toolbarIcons.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("toolbarIcons.ImageStream")));
this.toolbarIcons.TransparentColor = System.Drawing.Color.Transparent;
//
// mainPanel
//
this.mainPanel.BackColor = System.Drawing.Color.Transparent;
this.mainPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.mainPanel.Controls.Add(this.bottomPanel);
this.mainPanel.Controls.Add(this.topPanel);
this.mainPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.mainPanel.Location = new System.Drawing.Point(0, 42);
this.mainPanel.Name = "mainPanel";
this.mainPanel.Size = new System.Drawing.Size(960, 540);
this.mainPanel.TabIndex = 1;
//
// bottomPanel
//
this.bottomPanel.AutoScroll = true;
this.bottomPanel.Controls.Add(this.descriptionPanel);
this.bottomPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.bottomPanel.Location = new System.Drawing.Point(0, 350);
this.bottomPanel.Name = "bottomPanel";
this.bottomPanel.Size = new System.Drawing.Size(956, 186);
this.bottomPanel.TabIndex = 8;
//
// descriptionPanel
//
this.descriptionPanel.BackColor = System.Drawing.Color.Transparent;
this.descriptionPanel.Controls.Add(this.descriptionTextBox);
this.descriptionPanel.Controls.Add(this.descriptionLabelPanel);
this.descriptionPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.descriptionPanel.DockPadding.Bottom = 9;
this.descriptionPanel.DockPadding.Left = 235;
this.descriptionPanel.DockPadding.Right = 35;
this.descriptionPanel.DockPadding.Top = 9;
this.descriptionPanel.Location = new System.Drawing.Point(0, 0);
this.descriptionPanel.Name = "descriptionPanel";
this.descriptionPanel.Size = new System.Drawing.Size(956, 186);
this.descriptionPanel.TabIndex = 9;
//
// descriptionTextBox
//
this.descriptionTextBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.descriptionTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.descriptionTextBox.Location = new System.Drawing.Point(235, 9);
this.descriptionTextBox.Multiline = true;
this.descriptionTextBox.Name = "descriptionTextBox";
this.descriptionTextBox.Size = new System.Drawing.Size(686, 168);
this.descriptionTextBox.TabIndex = 5;
this.descriptionTextBox.Text = "";
//
// descriptionLabelPanel
//
this.descriptionLabelPanel.BackColor = System.Drawing.Color.Transparent;
this.descriptionLabelPanel.Controls.Add(this.descriptionLabel);
this.descriptionLabelPanel.DockPadding.All = 10;
this.descriptionLabelPanel.Location = new System.Drawing.Point(0, 0);
this.descriptionLabelPanel.Name = "descriptionLabelPanel";
this.descriptionLabelPanel.Size = new System.Drawing.Size(200, 50);
this.descriptionLabelPanel.TabIndex = 4;
//
// descriptionLabel
//
this.descriptionLabel.Dock = System.Windows.Forms.DockStyle.Fill;
this.descriptionLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, ((System.Drawing.FontStyle)(((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic)
| System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.descriptionLabel.ForeColor = System.Drawing.SystemColors.Desktop;
this.descriptionLabel.Location = new System.Drawing.Point(10, 10);
this.descriptionLabel.Name = "descriptionLabel";
this.descriptionLabel.Size = new System.Drawing.Size(180, 30);
this.descriptionLabel.TabIndex = 0;
this.descriptionLabel.Text = "Description";
this.descriptionLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// topPanel
//
this.topPanel.AutoScroll = true;
this.topPanel.Controls.Add(this.effortPanel);
this.topPanel.Controls.Add(this.activityTypePanel);
this.topPanel.Controls.Add(this.pairProgrammerPanel);
this.topPanel.Controls.Add(this.primaryProgramerPanel);
this.topPanel.Controls.Add(this.ebProcessTypePenal);
this.topPanel.Controls.Add(this.namePanel);
this.topPanel.Controls.Add(this.iterationPenal);
this.topPanel.Dock = System.Windows.Forms.DockStyle.Top;
this.topPanel.Location = new System.Drawing.Point(0, 0);
this.topPanel.Name = "topPanel";
this.topPanel.Size = new System.Drawing.Size(956, 350);
this.topPanel.TabIndex = 7;
//
// effortPanel
//
this.effortPanel.BackColor = System.Drawing.Color.Transparent;
this.effortPanel.Controls.Add(this.effortContentPanel);
this.effortPanel.Controls.Add(this.effortLabelPanel);
this.effortPanel.Dock = System.Windows.Forms.DockStyle.Top;
this.effortPanel.Location = new System.Drawing.Point(0, 300);
this.effortPanel.Name = "effortPanel";
this.effortPanel.Size = new System.Drawing.Size(956, 50);
this.effortPanel.TabIndex = 20;
//
// effortContentPanel
//
this.effortContentPanel.Controls.Add(this.worstCaseEstimateLabel);
this.effortContentPanel.Controls.Add(this.worstEstimateTextBox);
this.effortContentPanel.Controls.Add(this.mostLikelyCaseEstimateLabel);
this.effortContentPanel.Controls.Add(this.mostLikelyEstimateTextBox);
this.effortContentPanel.Controls.Add(this.bestCaseEstimateLabel);
this.effortContentPanel.Controls.Add(this.bestEstimateTextBox);
this.effortContentPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.effortContentPanel.DockPadding.Bottom = 9;
this.effortContentPanel.DockPadding.Left = 35;
this.effortContentPanel.DockPadding.Right = 35;
this.effortContentPanel.DockPadding.Top = 9;
this.effortContentPanel.Location = new System.Drawing.Point(200, 0);
this.effortContentPanel.Name = "effortContentPanel";
this.effortContentPanel.Size = new System.Drawing.Size(756, 50);
this.effortContentPanel.TabIndex = 2;
//
// bestEstimateTextBox
//
this.bestEstimateTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.bestEstimateTextBox.Location = new System.Drawing.Point(152, 8);
this.bestEstimateTextBox.Multiline = true;
this.bestEstimateTextBox.Name = "bestEstimateTextBox";
this.bestEstimateTextBox.RightToLeft = System.Windows.Forms.RightToLeft.No;
this.bestEstimateTextBox.Size = new System.Drawing.Size(93, 32);
this.bestEstimateTextBox.TabIndex = 1;
this.bestEstimateTextBox.Text = "";
//
// effortLabelPanel
//
this.effortLabelPanel.BackColor = System.Drawing.Color.Transparent;
this.effortLabelPanel.Controls.Add(this.effortLabel);
this.effortLabelPanel.Dock = System.Windows.Forms.DockStyle.Left;
this.effortLabelPanel.DockPadding.All = 10;
this.effortLabelPanel.Location = new System.Drawing.Point(0, 0);
this.effortLabelPanel.Name = "effortLabelPanel";
this.effortLabelPanel.Size = new System.Drawing.Size(200, 50);
this.effortLabelPanel.TabIndex = 1;
//
// effortLabel
//
this.effortLabel.Dock = System.Windows.Forms.DockStyle.Fill;
this.effortLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, ((System.Drawing.FontStyle)(((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic)
| System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.effortLabel.ForeColor = System.Drawing.SystemColors.Desktop;
this.effortLabel.Location = new System.Drawing.Point(10, 10);
this.effortLabel.Name = "effortLabel";
this.effortLabel.Size = new System.Drawing.Size(180, 30);
this.effortLabel.TabIndex = 1;
this.effortLabel.Text = "Effort Estimate";
this.effortLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// activityTypePanel
//
this.activityTypePanel.BackColor = System.Drawing.Color.Transparent;
this.activityTypePanel.Controls.Add(this.activityTypeContentPanel);
this.activityTypePanel.Controls.Add(this.activityTypeLabelPanel);
this.activityTypePanel.Dock = System.Windows.Forms.DockStyle.Top;
this.activityTypePanel.Location = new System.Drawing.Point(0, 250);
this.activityTypePanel.Name = "activityTypePanel";
this.activityTypePanel.Size = new System.Drawing.Size(956, 50);
this.activityTypePanel.TabIndex = 19;
//
// activityTypeContentPanel
//
this.activityTypeContentPanel.Controls.Add(this.activityTypeGroupBox);
this.activityTypeContentPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.activityTypeContentPanel.DockPadding.Bottom = 5;
this.activityTypeContentPanel.DockPadding.Left = 35;
this.activityTypeContentPanel.DockPadding.Right = 35;
this.activityTypeContentPanel.DockPadding.Top = 2;
this.activityTypeContentPanel.Location = new System.Drawing.Point(200, 0);
this.activityTypeContentPanel.Name = "activityTypeContentPanel";
this.activityTypeContentPanel.Size = new System.Drawing.Size(756, 50);
this.activityTypeContentPanel.TabIndex = 2;
//
// activityTypeGroupBox
//
this.activityTypeGroupBox.Controls.Add(this.bugFixRadioButton);
this.activityTypeGroupBox.Controls.Add(this.refactorRadioButton);
this.activityTypeGroupBox.Controls.Add(this.featureRadioButton);
this.activityTypeGroupBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.activityTypeGroupBox.Location = new System.Drawing.Point(35, 2);
this.activityTypeGroupBox.Name = "activityTypeGroupBox";
this.activityTypeGroupBox.Size = new System.Drawing.Size(686, 43);
this.activityTypeGroupBox.TabIndex = 0;
this.activityTypeGroupBox.TabStop = false;
//
// bugFixRadioButton
//
this.bugFixRadioButton.Dock = System.Windows.Forms.DockStyle.Left;
this.bugFixRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.bugFixRadioButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.bugFixRadioButton.ImageIndex = 1;
this.bugFixRadioButton.ImageList = this.icons;
this.bugFixRadioButton.Location = new System.Drawing.Point(461, 16);
this.bugFixRadioButton.Name = "bugFixRadioButton";
this.bugFixRadioButton.Size = new System.Drawing.Size(229, 24);
this.bugFixRadioButton.TabIndex = 2;
this.bugFixRadioButton.Text = "Bug Fix";
this.bugFixRadioButton.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// icons
//
this.icons.ImageSize = new System.Drawing.Size(25, 25);
this.icons.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("icons.ImageStream")));
this.icons.TransparentColor = System.Drawing.Color.Transparent;
//
// refactorRadioButton
//
this.refactorRadioButton.Dock = System.Windows.Forms.DockStyle.Left;
this.refactorRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.refactorRadioButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.refactorRadioButton.ImageIndex = 2;
this.refactorRadioButton.ImageList = this.icons;
this.refactorRadioButton.Location = new System.Drawing.Point(232, 16);
this.refactorRadioButton.Name = "refactorRadioButton";
this.refactorRadioButton.Size = new System.Drawing.Size(229, 24);
this.refactorRadioButton.TabIndex = 1;
this.refactorRadioButton.Text = "Refactor";
this.refactorRadioButton.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// featureRadioButton
//
this.featureRadioButton.Dock = System.Windows.Forms.DockStyle.Left;
this.featureRadioButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.featureRadioButton.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.featureRadioButton.ImageIndex = 0;
this.featureRadioButton.ImageList = this.icons;
this.featureRadioButton.Location = new System.Drawing.Point(3, 16);
this.featureRadioButton.Name = "featureRadioButton";
this.featureRadioButton.Size = new System.Drawing.Size(229, 24);
this.featureRadioButton.TabIndex = 0;
this.featureRadioButton.Text = "Feature";
this.featureRadioButton.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// activityTypeLabelPanel
//
this.activityTypeLabelPanel.BackColor = System.Drawing.Color.Transparent;
this.activityTypeLabelPanel.Controls.Add(this.activityTypeLabel);
this.activityTypeLabelPanel.Dock = System.Windows.Forms.DockStyle.Left;
this.activityTypeLabelPanel.DockPadding.All = 10;
this.activityTypeLabelPanel.Location = new System.Drawing.Point(0, 0);
this.activityTypeLabelPanel.Name = "activityTypeLabelPanel";
this.activityTypeLabelPanel.Size = new System.Drawing.Size(200, 50);
this.activityTypeLabelPanel.TabIndex = 1;
//
// activityTypeLabel
//
this.activityTypeLabel.Dock = System.Windows.Forms.DockStyle.Fill;
this.activityTypeLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, ((System.Drawing.FontStyle)(((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic)
| System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.activityTypeLabel.ForeColor = System.Drawing.SystemColors.Desktop;
this.activityTypeLabel.Location = new System.Drawing.Point(10, 10);
this.activityTypeLabel.Name = "activityTypeLabel";
this.activityTypeLabel.Size = new System.Drawing.Size(180, 30);
this.activityTypeLabel.TabIndex = 1;
this.activityTypeLabel.Text = "Activity Type";
this.activityTypeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// pairProgrammerPanel
//
this.pairProgrammerPanel.BackColor = System.Drawing.Color.Transparent;
this.pairProgrammerPanel.Controls.Add(this.pairProgrammerContentPanel);
this.pairProgrammerPanel.Controls.Add(this.pairProgrammerLabelPanel);
this.pairProgrammerPanel.Dock = System.Windows.Forms.DockStyle.Top;
this.pairProgrammerPanel.Location = new System.Drawing.Point(0, 200);
this.pairProgrammerPanel.Name = "pairProgrammerPanel";
this.pairProgrammerPanel.Size = new System.Drawing.Size(956, 50);
this.pairProgrammerPanel.TabIndex = 18;
//
// pairProgrammerContentPanel
//
this.pairProgrammerContentPanel.Controls.Add(this.pairProgrammerComboBox);
this.pairProgrammerContentPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.pairProgrammerContentPanel.DockPadding.Bottom = 9;
this.pairProgrammerContentPanel.DockPadding.Left = 35;
this.pairProgrammerContentPanel.DockPadding.Right = 35;
this.pairProgrammerContentPanel.DockPadding.Top = 9;
this.pairProgrammerContentPanel.Location = new System.Drawing.Point(200, 0);
this.pairProgrammerContentPanel.Name = "pairProgrammerContentPanel";
this.pairProgrammerContentPanel.Size = new System.Drawing.Size(756, 50);
this.pairProgrammerContentPanel.TabIndex = 2;
//
// pairProgrammerComboBox
//
this.pairProgrammerComboBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.pairProgrammerComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.pairProgrammerComboBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.pairProgrammerComboBox.Location = new System.Drawing.Point(35, 9);
this.pairProgrammerComboBox.Name = "pairProgrammerComboBox";
this.pairProgrammerComboBox.Size = new System.Drawing.Size(686, 32);
this.pairProgrammerComboBox.TabIndex = 2;
//
// pairProgrammerLabelPanel
//
this.pairProgrammerLabelPanel.BackColor = System.Drawing.Color.Transparent;
this.pairProgrammerLabelPanel.Controls.Add(this.pairProgrammerLabel);
this.pairProgrammerLabelPanel.Dock = System.Windows.Forms.DockStyle.Left;
this.pairProgrammerLabelPanel.DockPadding.All = 10;
this.pairProgrammerLabelPanel.Location = new System.Drawing.Point(0, 0);
this.pairProgrammerLabelPanel.Name = "pairProgrammerLabelPanel";
this.pairProgrammerLabelPanel.Size = new System.Drawing.Size(200, 50);
this.pairProgrammerLabelPanel.TabIndex = 1;
//
// pairProgrammerLabel
//
this.pairProgrammerLabel.Dock = System.Windows.Forms.DockStyle.Fill;
this.pairProgrammerLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, ((System.Drawing.FontStyle)(((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic)
| System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.pairProgrammerLabel.ForeColor = System.Drawing.SystemColors.Desktop;
this.pairProgrammerLabel.Location = new System.Drawing.Point(10, 10);
this.pairProgrammerLabel.Name = "pairProgrammerLabel";
this.pairProgrammerLabel.Size = new System.Drawing.Size(180, 30);
this.pairProgrammerLabel.TabIndex = 1;
this.pairProgrammerLabel.Text = "Pair Programmer";
this.pairProgrammerLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// primaryProgramerPanel
//
this.primaryProgramerPanel.BackColor = System.Drawing.Color.Transparent;
this.primaryProgramerPanel.Controls.Add(this.primaryProgrammerContentPanel);
this.primaryProgramerPanel.Controls.Add(this.primaryProgrammerLabelPanel);
this.primaryProgramerPanel.Dock = System.Windows.Forms.DockStyle.Top;
this.primaryProgramerPanel.Location = new System.Drawing.Point(0, 150);
this.primaryProgramerPanel.Name = "primaryProgramerPanel";
this.primaryProgramerPanel.Size = new System.Drawing.Size(956, 50);
this.primaryProgramerPanel.TabIndex = 17;
//
// primaryProgrammerContentPanel
//
this.primaryProgrammerContentPanel.Controls.Add(this.primaryProgrammerComboBox);
this.primaryProgrammerContentPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.primaryProgrammerContentPanel.DockPadding.Bottom = 9;
this.primaryProgrammerContentPanel.DockPadding.Left = 35;
this.primaryProgrammerContentPanel.DockPadding.Right = 35;
this.primaryProgrammerContentPanel.DockPadding.Top = 9;
this.primaryProgrammerContentPanel.Location = new System.Drawing.Point(200, 0);
this.primaryProgrammerContentPanel.Name = "primaryProgrammerContentPanel";
this.primaryProgrammerContentPanel.Size = new System.Drawing.Size(756, 50);
this.primaryProgrammerContentPanel.TabIndex = 2;
//
// primaryProgrammerComboBox
//
this.primaryProgrammerComboBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.primaryProgrammerComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.primaryProgrammerComboBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.primaryProgrammerComboBox.Location = new System.Drawing.Point(35, 9);
this.primaryProgrammerComboBox.Name = "primaryProgrammerComboBox";
this.primaryProgrammerComboBox.Size = new System.Drawing.Size(686, 32);
this.primaryProgrammerComboBox.TabIndex = 2;
//
// primaryProgrammerLabelPanel
//
this.primaryProgrammerLabelPanel.BackColor = System.Drawing.Color.Transparent;
this.primaryProgrammerLabelPanel.Controls.Add(this.primaryProgrammerLabel);
this.primaryProgrammerLabelPanel.Dock = System.Windows.Forms.DockStyle.Left;
this.primaryProgrammerLabelPanel.DockPadding.All = 10;
this.primaryProgrammerLabelPanel.Location = new System.Drawing.Point(0, 0);
this.primaryProgrammerLabelPanel.Name = "primaryProgrammerLabelPanel";
this.primaryProgrammerLabelPanel.Size = new System.Drawing.Size(200, 50);
this.primaryProgrammerLabelPanel.TabIndex = 1;
//
// primaryProgrammerLabel
//
this.primaryProgrammerLabel.Dock = System.Windows.Forms.DockStyle.Fill;
this.primaryProgrammerLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, ((System.Drawing.FontStyle)(((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic)
| System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.primaryProgrammerLabel.ForeColor = System.Drawing.SystemColors.Desktop;
this.primaryProgrammerLabel.Location = new System.Drawing.Point(10, 10);
this.primaryProgrammerLabel.Name = "primaryProgrammerLabel";
this.primaryProgrammerLabel.Size = new System.Drawing.Size(180, 30);
this.primaryProgrammerLabel.TabIndex = 1;
this.primaryProgrammerLabel.Text = "Primary Programmer";
this.primaryProgrammerLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// ebProcessTypePenal
//
this.ebProcessTypePenal.BackColor = System.Drawing.Color.Transparent;
this.ebProcessTypePenal.Controls.Add(this.ebProcessTypePanel);
this.ebProcessTypePenal.Controls.Add(this.ebProcessTypeLabelPanel);
this.ebProcessTypePenal.Dock = System.Windows.Forms.DockStyle.Top;
this.ebProcessTypePenal.Location = new System.Drawing.Point(0, 100);
this.ebProcessTypePenal.Name = "ebProcessTypePenal";
this.ebProcessTypePenal.Size = new System.Drawing.Size(956, 50);
this.ebProcessTypePenal.TabIndex = 16;
//
// ebProcessTypePanel
//
this.ebProcessTypePanel.Controls.Add(this.ebProcessTypeComboBox);
this.ebProcessTypePanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.ebProcessTypePanel.DockPadding.Bottom = 9;
this.ebProcessTypePanel.DockPadding.Left = 35;
this.ebProcessTypePanel.DockPadding.Right = 35;
this.ebProcessTypePanel.DockPadding.Top = 9;
this.ebProcessTypePanel.Location = new System.Drawing.Point(200, 0);
this.ebProcessTypePanel.Name = "ebProcessTypePanel";
this.ebProcessTypePanel.Size = new System.Drawing.Size(756, 50);
this.ebProcessTypePanel.TabIndex = 2;
//
// ebProcessTypeComboBox
//
this.ebProcessTypeComboBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.ebProcessTypeComboBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.ebProcessTypeComboBox.Location = new System.Drawing.Point(35, 9);
this.ebProcessTypeComboBox.Name = "ebProcessTypeComboBox";
this.ebProcessTypeComboBox.Size = new System.Drawing.Size(686, 32);
this.ebProcessTypeComboBox.TabIndex = 1;
//
// ebProcessTypeLabelPanel
//
this.ebProcessTypeLabelPanel.BackColor = System.Drawing.Color.Transparent;
this.ebProcessTypeLabelPanel.Controls.Add(this.ebProcessTypeLabel);
this.ebProcessTypeLabelPanel.Dock = System.Windows.Forms.DockStyle.Left;
this.ebProcessTypeLabelPanel.DockPadding.All = 10;
this.ebProcessTypeLabelPanel.Location = new System.Drawing.Point(0, 0);
this.ebProcessTypeLabelPanel.Name = "ebProcessTypeLabelPanel";
this.ebProcessTypeLabelPanel.Size = new System.Drawing.Size(200, 50);
this.ebProcessTypeLabelPanel.TabIndex = 1;
//
// ebProcessTypeLabel
//
this.ebProcessTypeLabel.Dock = System.Windows.Forms.DockStyle.Fill;
this.ebProcessTypeLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, ((System.Drawing.FontStyle)(((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic)
| System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.ebProcessTypeLabel.ForeColor = System.Drawing.SystemColors.Desktop;
this.ebProcessTypeLabel.Location = new System.Drawing.Point(10, 10);
this.ebProcessTypeLabel.Name = "ebProcessTypeLabel";
this.ebProcessTypeLabel.Size = new System.Drawing.Size(180, 30);
this.ebProcessTypeLabel.TabIndex = 1;
this.ebProcessTypeLabel.Text = "EB Process Type";
this.ebProcessTypeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// namePanel
//
this.namePanel.BackColor = System.Drawing.Color.Transparent;
this.namePanel.Controls.Add(this.nameContentPanel);
this.namePanel.Controls.Add(this.nameLabelPanel);
this.namePanel.Dock = System.Windows.Forms.DockStyle.Top;
this.namePanel.Location = new System.Drawing.Point(0, 50);
this.namePanel.Name = "namePanel";
this.namePanel.Size = new System.Drawing.Size(956, 50);
this.namePanel.TabIndex = 15;
//
// nameContentPanel
//
this.nameContentPanel.Controls.Add(this.storyNameTextBox);
this.nameContentPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.nameContentPanel.DockPadding.Bottom = 9;
this.nameContentPanel.DockPadding.Left = 35;
this.nameContentPanel.DockPadding.Right = 35;
this.nameContentPanel.DockPadding.Top = 9;
this.nameContentPanel.Location = new System.Drawing.Point(200, 0);
this.nameContentPanel.Name = "nameContentPanel";
this.nameContentPanel.Size = new System.Drawing.Size(756, 50);
this.nameContentPanel.TabIndex = 2;
//
// storyNameTextBox
//
this.storyNameTextBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.storyNameTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.storyNameTextBox.Location = new System.Drawing.Point(35, 9);
this.storyNameTextBox.Multiline = true;
this.storyNameTextBox.Name = "storyNameTextBox";
this.storyNameTextBox.Size = new System.Drawing.Size(686, 32);
this.storyNameTextBox.TabIndex = 0;
this.storyNameTextBox.Text = "";
//
// nameLabelPanel
//
this.nameLabelPanel.BackColor = System.Drawing.Color.Transparent;
this.nameLabelPanel.Controls.Add(this.nameLabel);
this.nameLabelPanel.Dock = System.Windows.Forms.DockStyle.Left;
this.nameLabelPanel.DockPadding.All = 10;
this.nameLabelPanel.Location = new System.Drawing.Point(0, 0);
this.nameLabelPanel.Name = "nameLabelPanel";
this.nameLabelPanel.Size = new System.Drawing.Size(200, 50);
this.nameLabelPanel.TabIndex = 1;
//
// nameLabel
//
this.nameLabel.Dock = System.Windows.Forms.DockStyle.Fill;
this.nameLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, ((System.Drawing.FontStyle)(((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic)
| System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.nameLabel.ForeColor = System.Drawing.SystemColors.Desktop;
this.nameLabel.Location = new System.Drawing.Point(10, 10);
this.nameLabel.Name = "nameLabel";
this.nameLabel.Size = new System.Drawing.Size(180, 30);
this.nameLabel.TabIndex = 1;
this.nameLabel.Text = "Story Name ";
this.nameLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// iterationPenal
//
this.iterationPenal.BackColor = System.Drawing.Color.Transparent;
this.iterationPenal.Controls.Add(this.iterationContentPanel);
this.iterationPenal.Controls.Add(this.iterationLabelPanel);
this.iterationPenal.Dock = System.Windows.Forms.DockStyle.Top;
this.iterationPenal.Location = new System.Drawing.Point(0, 0);
this.iterationPenal.Name = "iterationPenal";
this.iterationPenal.Size = new System.Drawing.Size(956, 50);
this.iterationPenal.TabIndex = 14;
//
// iterationContentPanel
//
this.iterationContentPanel.Controls.Add(this.iterationNameComboBox);
this.iterationContentPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.iterationContentPanel.DockPadding.Bottom = 9;
this.iterationContentPanel.DockPadding.Left = 35;
this.iterationContentPanel.DockPadding.Right = 35;
this.iterationContentPanel.DockPadding.Top = 9;
this.iterationContentPanel.Location = new System.Drawing.Point(200, 0);
this.iterationContentPanel.Name = "iterationContentPanel";
this.iterationContentPanel.Size = new System.Drawing.Size(756, 50);
this.iterationContentPanel.TabIndex = 1;
//
// iterationNameComboBox
//
this.iterationNameComboBox.BackColor = System.Drawing.Color.White;
this.iterationNameComboBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.iterationNameComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.iterationNameComboBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.iterationNameComboBox.ForeColor = System.Drawing.Color.Black;
this.iterationNameComboBox.Location = new System.Drawing.Point(35, 9);
this.iterationNameComboBox.Name = "iterationNameComboBox";
this.iterationNameComboBox.Size = new System.Drawing.Size(686, 32);
this.iterationNameComboBox.TabIndex = 0;
//
// iterationLabelPanel
//
this.iterationLabelPanel.BackColor = System.Drawing.Color.Transparent;
this.iterationLabelPanel.Controls.Add(this.iterationLabel);
this.iterationLabelPanel.Dock = System.Windows.Forms.DockStyle.Left;
this.iterationLabelPanel.DockPadding.All = 10;
this.iterationLabelPanel.Location = new System.Drawing.Point(0, 0);
this.iterationLabelPanel.Name = "iterationLabelPanel";
this.iterationLabelPanel.Size = new System.Drawing.Size(200, 50);
this.iterationLabelPanel.TabIndex = 0;
//
// iterationLabel
//
this.iterationLabel.Dock = System.Windows.Forms.DockStyle.Fill;
this.iterationLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, ((System.Drawing.FontStyle)(((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic)
| System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.iterationLabel.ForeColor = System.Drawing.SystemColors.Desktop;
this.iterationLabel.Location = new System.Drawing.Point(10, 10);
this.iterationLabel.Name = "iterationLabel";
this.iterationLabel.Size = new System.Drawing.Size(180, 30);
this.iterationLabel.TabIndex = 1;
this.iterationLabel.Text = "Iteration Name ";
this.iterationLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label7
//
this.label7.Dock = System.Windows.Forms.DockStyle.Fill;
this.label7.Location = new System.Drawing.Point(10, 10);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(180, 30);
this.label7.TabIndex = 0;
//
// label6
//
this.label6.Dock = System.Windows.Forms.DockStyle.Fill;
this.label6.Location = new System.Drawing.Point(10, 10);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(180, 30);
this.label6.TabIndex = 0;
//
// label5
//
this.label5.Dock = System.Windows.Forms.DockStyle.Fill;
this.label5.Location = new System.Drawing.Point(10, 10);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(180, 30);
this.label5.TabIndex = 0;
//
// label4
//
this.label4.Dock = System.Windows.Forms.DockStyle.Fill;
this.label4.Location = new System.Drawing.Point(10, 10);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(180, 30);
this.label4.TabIndex = 0;
//
// label3
//
this.label3.Dock = System.Windows.Forms.DockStyle.Fill;
this.label3.Location = new System.Drawing.Point(10, 10);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(180, 30);
this.label3.TabIndex = 0;
//
// label2
//
this.label2.Dock = System.Windows.Forms.DockStyle.Fill;
this.label2.Location = new System.Drawing.Point(10, 10);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(180, 30);
this.label2.TabIndex = 0;
//
// label1
//
this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
this.label1.Location = new System.Drawing.Point(10, 10);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(180, 30);
this.label1.TabIndex = 0;
//
// label8
//
this.label8.Dock = System.Windows.Forms.DockStyle.Fill;
this.label8.Location = new System.Drawing.Point(10, 10);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(180, 30);
this.label8.TabIndex = 0;
//
// bestCaseEstimateLabel
//
this.bestCaseEstimateLabel.Location = new System.Drawing.Point(40, 8);
this.bestCaseEstimateLabel.Name = "bestCaseEstimateLabel";
this.bestCaseEstimateLabel.Size = new System.Drawing.Size(100, 32);
this.bestCaseEstimateLabel.TabIndex = 2;
this.bestCaseEstimateLabel.Text = "Best Case Estimate:";
this.bestCaseEstimateLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// mostLikelyCaseEstimateLabel
//
this.mostLikelyCaseEstimateLabel.Location = new System.Drawing.Point(256, 8);
this.mostLikelyCaseEstimateLabel.Name = "mostLikelyCaseEstimateLabel";
this.mostLikelyCaseEstimateLabel.Size = new System.Drawing.Size(100, 32);
this.mostLikelyCaseEstimateLabel.TabIndex = 4;
this.mostLikelyCaseEstimateLabel.Text = "Most Likely Estimate: ";
//
// mostLikelyEstimateTextBox
//
this.mostLikelyEstimateTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.mostLikelyEstimateTextBox.Location = new System.Drawing.Point(368, 8);
this.mostLikelyEstimateTextBox.Multiline = true;
this.mostLikelyEstimateTextBox.Name = "mostLikelyEstimateTextBox";
this.mostLikelyEstimateTextBox.Size = new System.Drawing.Size(93, 32);
this.mostLikelyEstimateTextBox.TabIndex = 3;
this.mostLikelyEstimateTextBox.Text = "";
//
// worstCaseEstimateLabel
//
this.worstCaseEstimateLabel.Location = new System.Drawing.Point(472, 8);
this.worstCaseEstimateLabel.Name = "worstCaseEstimateLabel";
this.worstCaseEstimateLabel.Size = new System.Drawing.Size(100, 32);
this.worstCaseEstimateLabel.TabIndex = 6;
this.worstCaseEstimateLabel.Text = "Worst Case Estimate:";
//
// worstEstimateTextBox
//
this.worstEstimateTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.worstEstimateTextBox.Location = new System.Drawing.Point(584, 8);
this.worstEstimateTextBox.Multiline = true;
this.worstEstimateTextBox.Name = "worstEstimateTextBox";
this.worstEstimateTextBox.Size = new System.Drawing.Size(93, 32);
this.worstEstimateTextBox.TabIndex = 5;
this.worstEstimateTextBox.Text = "";
//
// EStoryForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(960, 582);
this.Controls.Add(this.mainPanel);
this.Controls.Add(this.mainToolBar);
this.MaximizeBox = false;
this.Menu = this.mainMenu1;
this.MinimizeBox = false;
this.Name = "EStoryForm";
this.Text = "E-Story";
this.Closed += new System.EventHandler(this.EStoryForm_Closed);
this.mainPanel.ResumeLayout(false);
this.bottomPanel.ResumeLayout(false);
this.descriptionPanel.ResumeLayout(false);
this.descriptionLabelPanel.ResumeLayout(false);
this.topPanel.ResumeLayout(false);
this.effortPanel.ResumeLayout(false);
this.effortContentPanel.ResumeLayout(false);
this.effortLabelPanel.ResumeLayout(false);
this.activityTypePanel.ResumeLayout(false);
this.activityTypeContentPanel.ResumeLayout(false);
this.activityTypeGroupBox.ResumeLayout(false);
this.activityTypeLabelPanel.ResumeLayout(false);
this.pairProgrammerPanel.ResumeLayout(false);
this.pairProgrammerContentPanel.ResumeLayout(false);
this.pairProgrammerLabelPanel.ResumeLayout(false);
this.primaryProgramerPanel.ResumeLayout(false);
this.primaryProgrammerContentPanel.ResumeLayout(false);
this.primaryProgrammerLabelPanel.ResumeLayout(false);
this.ebProcessTypePenal.ResumeLayout(false);
this.ebProcessTypePanel.ResumeLayout(false);
this.ebProcessTypeLabelPanel.ResumeLayout(false);
this.namePanel.ResumeLayout(false);
this.nameContentPanel.ResumeLayout(false);
this.nameLabelPanel.ResumeLayout(false);
this.iterationPenal.ResumeLayout(false);
this.iterationContentPanel.ResumeLayout(false);
this.iterationLabelPanel.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// The main entry point for the application.
/// </summary>
// [STAThread]
// static void Main()
// {
// //Application.Run(new EStoryForm());
// webServicesService webService = new webServicesService();
// TabletAgent[] agents = webService.getAllAgentsNameAndID();
// string[] ebProcessTypes = null;//webService.getAllEBProcessTypeNames();
// TabletVO[] iterationAry = webService.getAllIterationsByProject(2);
// TabletVO[] storyAry = webService.getAllStoriesByIterId(2);
// EStoryForm f = new EStoryForm(2, iterationAry, agents, ref storyAry[6], ebProcessTypes, null);
// Application.Run(f);
// }
public void run(Object stateInfo)
{
Application.Run(this);
}
public Image DrawTopPanelStoryBG(int width, int height, Color color)
{
int rowHeight = iterationPenal.Height;
Bitmap image = new Bitmap(width, height);
Graphics gf = Graphics.FromImage(image);
gf.Clear(Color.White);
int rowWidth = width;
int nextY = 0;
float penWidth = 1;
Pen drawPen = new Pen(color, penWidth);
for(int i=1; i*rowHeight <= height; i++)
{
nextY = i*rowHeight - Convert.ToInt32(penWidth);
gf.DrawLine(drawPen, 0, nextY, rowWidth, nextY);
}
gf.Save();
return (Image) image;
}
public Image DrawBottomPanelStoryBG(int width, int height, Color color)
{
int rowHeight = iterationPenal.Height;
Bitmap image = new Bitmap(width, height);
Graphics gf = Graphics.FromImage(image);
gf.Clear(Color.White);
int rowWidth = width;
int nextY = 0;
float penWidth = 1;
Pen drawPen = new Pen(color, penWidth);
if(handWrittenCard)
{
for(int i=1; i*rowHeight <= height; i++)
{
nextY = i*rowHeight - Convert.ToInt32(penWidth);
gf.DrawLine(drawPen, 0, nextY, rowWidth, nextY);
}
}
gf.Save();
return (Image) image;
}
private void menuItem_storyUpdate_Click(object sender, System.EventArgs e)
{
saveCard();
}
private void saveCard()
{
byte[] nameSavedInk = null;
byte[] descriptionSavedInk = null;
byte[] bestCaseSavedInk = null;
byte[] mostLikelyCaseSavedInk = null;
byte[] worstCaseSavedInk = null;
string namebase64String = null;
string descriptionBase64String = null;
string bestCaseBase64String = null;
string mostLikelyCaseBase64String = null;
string worstCaseBase64String = null;
string nameString = null;
string descriptionString = null;
string bestCaseString = null;
string mostLikelyCaseString = null;
string worstCaseString = null;
string handWritten = null;
int activityType = 0;
int selectedItrIndex = iterationNameComboBox.SelectedIndex;
int selectedResponsibleAgentIndex = primaryProgrammerComboBox.SelectedIndex;
selectedResponsibleAgentIndex--;
int selectedPairProgrammerIndex = pairProgrammerComboBox.SelectedIndex;
selectedPairProgrammerIndex--;
if(handWrittenCard)
{
nameSavedInk = SaveInkObject(nameInkOverlay.Ink);
descriptionSavedInk = SaveInkObject(descriptionInkOverlay.Ink);
bestCaseSavedInk = SaveInkObject(bestCaseEstimateInkOverlay.Ink);
mostLikelyCaseSavedInk = SaveInkObject(mostLikelyCaseEstimateInkOverlay.Ink);
worstCaseSavedInk = SaveInkObject(worstCaseEstimateInkOverlay.Ink);
try
{
namebase64String = System.Convert.ToBase64String(nameSavedInk);
nameString = nameInkOverlay.Ink.Strokes.ToString();
descriptionBase64String = System.Convert.ToBase64String(descriptionSavedInk);
descriptionString = descriptionInkOverlay.Ink.Strokes.ToString();
bestCaseBase64String = System.Convert.ToBase64String(bestCaseSavedInk);
bestCaseString = bestCaseEstimateInkOverlay.Ink.Strokes.ToString();
mostLikelyCaseBase64String = System.Convert.ToBase64String(mostLikelyCaseSavedInk);
mostLikelyCaseString = mostLikelyCaseEstimateInkOverlay.Ink.Strokes.ToString();
worstCaseBase64String = System.Convert.ToBase64String(worstCaseSavedInk);
worstCaseString = worstCaseEstimateInkOverlay.Ink.Strokes.ToString();
}
catch (System.Runtime.InteropServices.COMException comEx)
{
MessageBox.Show(comEx.ToString()+ "Possible Cause: There is no recognizer installed on this machine.");
//MessageBox.Show("Your machine does not equip with Ink recognizers. As such you cannot save the new created handwritten card.");
return;
}
handWritten = "<root>" +"<description>"+descriptionBase64String+"</description>"+
"<storyName>"+namebase64String+"</storyName>"+
"<bestCaseEstimate>"+bestCaseBase64String+"</bestCaseEstimate>" +
"<mostLikelyCaseEstimate>"+mostLikelyCaseBase64String+"</mostLikelyCaseEstimate>" +
"<worstCaseEstimate>"+worstCaseBase64String+"</worstCaseEstimate>" +
"</root>";
}
else
{
nameString = storyNameTextBox.Text;
descriptionString = descriptionTextBox.Text;
bestCaseString = bestEstimateTextBox.Text;
mostLikelyCaseString = mostLikelyEstimateTextBox.Text;
worstCaseString = worstEstimateTextBox.Text;
}
if(nameString == null)
{
MessageBox.Show("Story name cannot be empty");
return;
}
else
{
nameString = nameString.Trim();
if(nameString.Length==0)
{
MessageBox.Show("Story name cannot be empty");
return;
}
}
if(featureRadioButton.Checked)
activityType = EStoryForm.FEATURE;
else if(refactorRadioButton.Checked)
activityType = EStoryForm.ENHANCEMENT;
else
activityType = EStoryForm.BUG;
storyVO.tabletProcess.name = nameString;
if(descriptionString == null)
storyVO.tabletProcess.description = "";
else
storyVO.tabletProcess.description = descriptionString;
try
{
storyVO.tabletProcess.bestCaseEstimate = Convert.ToSingle(bestCaseString);
}
catch (FormatException)
{
MessageBox.Show("Effort is not in a recognized format. It will be set to zero");
storyVO.tabletProcess.bestCaseEstimate = 0;
}
try
{
storyVO.tabletProcess.mostLikelyEstimate = Convert.ToSingle(mostLikelyCaseString);
}
catch (FormatException)
{
MessageBox.Show("Effort is not in a recognized format. It will be set to zero");
storyVO.tabletProcess.mostLikelyEstimate = 0;
}
try
{
storyVO.tabletProcess.worstCaseEstimate = Convert.ToSingle(worstCaseString);
}
catch (FormatException)
{
MessageBox.Show("Effort is not in a recognized format. It will be set to zero");
storyVO.tabletProcess.worstCaseEstimate = 0;
}
storyVO.tabletProcess.initialEffort = storyVO.tabletProcess.mostLikelyEstimate;
storyVO.tabletProcess.handWritten = handWritten;
storyVO.tabletProcess.activityType = activityType;
if(storyVO.iterationID != iterations[selectedItrIndex].iterationID)
{
storyVO.iterationID = iterations[selectedItrIndex].iterationID;
storyVO.horizontalCenter.centerX = -1.0f;
storyVO.horizontalCenter.centerY = -1.0f;
storyVO.horizontalCenter.rotationAngle = 0.0f;
this.iterationChanged = true;
if(storyVO.iterationID == iterations[0].iterationID)
this.moveToProductBacklog = true;
}
storyVO.iterationName = iterations[selectedItrIndex].iterationName;
if(selectedResponsibleAgentIndex > -1 )
{
storyVO.agentResponsibleID = agents[selectedResponsibleAgentIndex].agentID;
storyVO.agentResponsibleName = agents[selectedResponsibleAgentIndex].agentName;
}
else
{
storyVO.agentResponsibleID = -1;
storyVO.agentResponsibleName = "";
}
if(selectedPairProgrammerIndex > -1 )
{
storyVO.pairProgrammerID = agents[selectedPairProgrammerIndex].agentID;
storyVO.pairProgrammerName = agents[selectedPairProgrammerIndex].agentName;
}
else
{
storyVO.pairProgrammerID = -1;
storyVO.pairProgrammerName = "";
}
storyVO.projectID = projectID;
storyVO.parentID = storyVO.iterationID;
this.Dispose();
}
private byte[] SaveInkObject(Ink ink)
{
if(ink.Strokes.Count != 0)
return ink.Save(PersistenceFormat.Base64Gif, CompressionMode.Maximum);
else
return new byte[1];
}
private void PropagateStoryContent()
{
PropagateIterationList();
PropagateStoryName();
PropagateAgentLists();
PropagateActivityType();
PropagateEffort();
PropagateDescription();
}
private void PropagateEffort()
{
if(handWrittenCard == true)
{
//effortContentPanel.Controls.Remove(effortTextBox);
//bestEstimateTextBox.Visible = false;
//bestEstimateTextBox.Visible = false;
//bestEstimateTextBox.Visible = false;
return;
}
bestEstimateTextBox.Text = storyVO.tabletProcess.bestCaseEstimate.ToString();
mostLikelyEstimateTextBox.Text = storyVO.tabletProcess.mostLikelyEstimate.ToString();
worstEstimateTextBox.Text = storyVO.tabletProcess.worstCaseEstimate.ToString();
}
private void PropagateDescription()
{
if(handWrittenCard == true)
{
//descriptionPanel.Controls.Remove(descriptionTextBox);
descriptionTextBox.Visible = false;
return;
}
descriptionTextBox.Text = storyVO.tabletProcess.description;
}
private void PropagateStoryName()
{
if(handWrittenCard == true)
{
//nameContentPanel.Controls.Remove(storyNameTextBox);
storyNameTextBox.Visible = false;
return;
}
storyNameTextBox.Text = storyVO.tabletProcess.name;
}
private void PropagateActivityType()
{
const int FEATURE = 0;
const int BUG = 1;
const int ENHANCEMENT = 2;
int activityTypeString = storyVO.tabletProcess.activityType;
if(activityTypeString.Equals(FEATURE))
featureRadioButton.Checked = true;
else if (activityTypeString.Equals(ENHANCEMENT))
refactorRadioButton.Checked = true;
else
bugFixRadioButton.Checked = true;
}
private void PropagateIterationList()
{
int iterationIndex = 0;
if(iterations!=null)
{
for(int i=0; i<iterations.Length; i++)
{
iterationNameComboBox.Items.Add(iterations[i].iterationName);
if(iterations[i].iterationID == storyVO.iterationID)
iterationIndex = i;
}
}
else
{
iterationNameComboBox.Items.Add("No Iteration Available");
}
iterationNameComboBox.SelectedIndex = iterationIndex;
}
private void PropagateAgentLists()
{
int primaryAgentIndex = 0;
int pairAgentIndex = 0;
int primaryAgentID = Convert.ToInt32(storyVO.agentResponsibleID);
int pairAgentID = Convert.ToInt32(storyVO.pairProgrammerID);
primaryProgrammerComboBox.Items.Add("Not Assigned");
pairProgrammerComboBox.Items.Add("Not Assigned");
if(agents!=null)
{
for(int i=0; i<agents.Length; i++)
{
primaryProgrammerComboBox.Items.Add(agents[i].agentName);
pairProgrammerComboBox.Items.Add(agents[i].agentName);
if(primaryAgentID == agents[i].agentID)
primaryAgentIndex = i+1;
if(pairAgentID == agents[i].agentID)
pairAgentIndex = i+1;
}
}
primaryProgrammerComboBox.SelectedIndex = primaryAgentIndex;
pairProgrammerComboBox.SelectedIndex = pairAgentIndex;
}
public void LoadPenInputPanels(string loadedString)
{
HandWrittenObj handWrittenObj = new HandWrittenObj();
Utility.loadHandWrittenObj(loadedString, ref handWrittenObj);
nameInkOverlay.Enabled = false;
Ink nameInk = nameInkOverlay.Ink;
if(handWrittenObj.storyNameBase64String != "AA==")
nameInk.Load(Convert.FromBase64String(handWrittenObj.storyNameBase64String));
nameInkOverlay.Enabled = true;
bestCaseEstimateInkOverlay.Enabled = false;
Ink bestCaseEstimateInk = bestCaseEstimateInkOverlay.Ink;
if(handWrittenObj.bestCaseBase64String != "AA==")
bestCaseEstimateInk.Load(Convert.FromBase64String(handWrittenObj.bestCaseBase64String));
bestCaseEstimateInkOverlay.Enabled = true;
worstCaseEstimateInkOverlay.Enabled = false;
Ink worstCaseEstimateInk = worstCaseEstimateInkOverlay.Ink;
if(handWrittenObj.worstCaseBase64String != "AA==")
worstCaseEstimateInk.Load(Convert.FromBase64String(handWrittenObj.worstCaseBase64String));
worstCaseEstimateInkOverlay.Enabled = true;
mostLikelyCaseEstimateInkOverlay.Enabled = false;
Ink mostLikelyEstimateInk = mostLikelyCaseEstimateInkOverlay.Ink;
if(handWrittenObj.mostLikelyCaseBase64String != "AA==")
mostLikelyEstimateInk.Load(Convert.FromBase64String(handWrittenObj.mostLikelyCaseBase64String));
mostLikelyCaseEstimateInkOverlay.Enabled = true;
descriptionInkOverlay.Enabled = false;
Ink descriprionInk = descriptionInkOverlay.Ink;
if(handWrittenObj.descriptionBase64String != "AA==")
descriprionInk.Load(Convert.FromBase64String(handWrittenObj.descriptionBase64String));
descriptionInkOverlay.Enabled = true;
}
private void menuItem_storyExit_Click(object sender, System.EventArgs e)
{
this.Dispose();
}
private void eraseByMode(string mode)
{
Boolean stopErase = mode.Equals("disable");
Boolean pointDeletion = mode.Equals("byPoint");
if(stopErase)
{
nameInkOverlay.EditingMode = InkOverlayEditingMode.Ink;
bestCaseEstimateInkOverlay.EditingMode = InkOverlayEditingMode.Ink;
mostLikelyCaseEstimateInkOverlay.EditingMode = InkOverlayEditingMode.Ink;
worstCaseEstimateInkOverlay.EditingMode = InkOverlayEditingMode.Ink;
descriptionInkOverlay.EditingMode = InkOverlayEditingMode.Ink;
}
else
{
while(nameInkOverlay.CollectingInk);
while(bestCaseEstimateInkOverlay.CollectingInk);
while(mostLikelyCaseEstimateInkOverlay.CollectingInk);
while(worstCaseEstimateInkOverlay.CollectingInk);
while(descriptionInkOverlay.CollectingInk);
nameInkOverlay.EditingMode = InkOverlayEditingMode.Delete;
nameInkOverlay.EraserMode = (pointDeletion? InkOverlayEraserMode.PointErase : InkOverlayEraserMode.StrokeErase);
bestCaseEstimateInkOverlay.EditingMode = InkOverlayEditingMode.Delete;
bestCaseEstimateInkOverlay.EraserMode = (pointDeletion? InkOverlayEraserMode.PointErase : InkOverlayEraserMode.StrokeErase);
mostLikelyCaseEstimateInkOverlay.EditingMode = InkOverlayEditingMode.Delete;
mostLikelyCaseEstimateInkOverlay.EraserMode = (pointDeletion? InkOverlayEraserMode.PointErase : InkOverlayEraserMode.StrokeErase);
worstCaseEstimateInkOverlay.EditingMode = InkOverlayEditingMode.Delete;
worstCaseEstimateInkOverlay.EraserMode = (pointDeletion? InkOverlayEraserMode.PointErase : InkOverlayEraserMode.StrokeErase);
descriptionInkOverlay.EditingMode = InkOverlayEditingMode.Delete;
descriptionInkOverlay.EraserMode = (pointDeletion? InkOverlayEraserMode.PointErase : InkOverlayEraserMode.StrokeErase);
}
eraserMenuItemsCleanUp();
}
private void eraserMenuItemsCleanUp()
{
menuItem1_toolEraser_clean_byPoint.Checked = false;
menuItem1_toolEraser_clean_byStroke.Checked = false;
menuItem1_toolEraser_disable.Checked = false;
}
private void byPointMenuItem_Click(object sender, System.EventArgs e)
{
eraseByMode("byPoint");
menuItem1_toolEraser_clean_byPoint.Checked = true;
}
private void byStrokeMenuItem_Click(object sender, System.EventArgs e)
{
eraseByMode("byStroke");
menuItem1_toolEraser_clean_byStroke.Checked = true;
}
private void eraserDisableMenuItem_Click(object sender, System.EventArgs e)
{
eraseByMode("disable");
menuItem1_toolEraser_disable.Checked = true;
}
private void cleanMenuItem_Click(object sender, System.EventArgs e)
{
if(handWrittenCard)
{
nameInkOverlay.Ink.DeleteStrokes();
descriptionInkOverlay.Ink.DeleteStrokes();
bestCaseEstimateInkOverlay.Ink.DeleteStrokes();
worstCaseEstimateInkOverlay.Ink.DeleteStrokes();
mostLikelyCaseEstimateInkOverlay.Ink.DeleteStrokes();
nameContentPanel.Refresh();
descriptionPanel.Refresh();
effortContentPanel.Refresh();
}
else
{
storyNameTextBox.Text = "";
bestEstimateTextBox.Text = "";
mostLikelyEstimateTextBox.Text = "";
worstEstimateTextBox.Text = "";
descriptionTextBox.Text = "";
}
iterationNameComboBox.SelectedIndex = 0;
pairProgrammerComboBox.SelectedIndex = 0;
primaryProgrammerComboBox.SelectedIndex = 0;
featureRadioButton.Checked = true;
}
private void eraser_cm_Popup(object sender, System.EventArgs e)
{
eraser_cm.MenuItems.Add(0,menuItem1_toolEraser_cleanAll);
eraser_cm.MenuItems.Add(1,menuItem1_toolEraser_clean_byPoint);
eraser_cm.MenuItems.Add(2,menuItem1_toolEraser_clean_byStroke);
}
private void mainToolBar_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
{
if (e.Button.Text.Equals("Pen"))
{
eraseByMode("disable");
}
else if (e.Button.Text.Equals("Save"))
{
menuItem_storyUpdate.PerformClick();
}
}
private void EStoryForm_Closed(object sender, System.EventArgs e)
{
if(storyVO.tabletProcess.id != Convert.ToInt64(EStoryForm.NotAssigned))
{
if(Workspace.pulibWorkspaceOrNot == true)
SingleWS.getInstance("").releaseTabletLock(storyVO.tabletProcess.id);
}
}
}
}
See more files for this project here