/// <summary>
        /// Creates an instance of a Task Time form in order to edit the TaskTime.
        /// </summary>
        /// <param name="_frmMain"></param>
        /// <param name="_taskId"></param>
        /// <param name="_taskTimeId"></param>
        /// <param name="_formClosed"></param>
        public frmTaskTime(frmMain _frmMain, Guid _taskId, Guid _taskTimeId, FormClosedEventHandler _formClosed = null)
        {
            Presentation.Forms.frmSplashScreen ss = new Presentation.Forms.frmSplashScreen();
            ss.Show();
            Application.DoEvents();

            InitializeComponent();

            Application.AddMessageFilter(this);
            controlsToMove.Add(this.pnlMainHeader);
            controlsToMove.Add(this.panel12);
            controlsToMove.Add(this.panel13);
            controlsToMove.Add(this.label48);
            controlsToMove.Add(this.label39);

            frmMain_Parent = _frmMain;
            FormClosed    += _formClosed;

            task                = new Business.Entities.Task(_taskId);
            taskTime            = new Business.Entities.TaskTime(frmMain_Parent.CurrentUser.UserId, _taskTimeId);
            txtTaskName.Text    = task.TaskTypeIdName;
            txtDescription.Text = taskTime.Description;
            txtNotes.Text       = taskTime.Notes;

            if (taskTime.StartDate == null)
            {
                txtStartDate.Text = null;
            }
            else
            {
                txtStartDate.Text = ((DateTime)taskTime.StartDate).ToString("MM/dd/yyyy HH:mm tt");
            }

            if (taskTime.EndDate == null)
            {
                txtEndDate.Text = null;
            }
            else
            {
                txtEndDate.Text = ((DateTime)taskTime.EndDate).ToString("MM/dd/yyyy HH:mm tt");
            }

            if (taskTime.DurationMinutes == null)
            {
                txtDuration.Text = null;
            }
            else
            {
                TimeSpan timeSpan = TimeSpan.FromMinutes((double)taskTime.DurationMinutes);
                txtDuration.Text = Convert.ToString(String.Format("{0:00}:{1:00}:{2:00}", timeSpan.Hours, timeSpan.Minutes, timeSpan.Seconds));
            }

            this.Show();
            ss.Close();
        }
        public frmProbationAnalysis(Presentation.Forms.frmMain mainForm, Guid fundId, Guid planId)
        {
            Presentation.Forms.frmSplashScreen ss = new Presentation.Forms.frmSplashScreen();
            ss.Show();
            Application.DoEvents();

            InitializeComponent();

            frmMain_Parent = mainForm;

            this.MaximumSize = Screen.PrimaryScreen.WorkingArea.Size;

            Application.AddMessageFilter(this);
            controlsToMove.Add(this.pnlFormHeader);
            controlsToMove.Add(this.lblFormHeader);
            controlsToMove.Add(this.lblHeader);
            controlsToMove.Add(this.pnlBackground);

            AddItemsToSelectedQuarterCbo();
            AddItemsToRecommendedWordCbo();
            AddItemsToOwnerCbo();

            pnlFields.Focus();

            SelectedFund = new Fund(fundId, null);
            SelectedPlan = new ISP.Business.Entities.Plan(planId);

            txtFund.Text       = SelectedFund.FundName;
            Text               = "Probation Analysis - " + SelectedFund.Ticker;
            txtPlan.Text       = SelectedPlan.PlanName;
            lblFormHeader.Text = "Investment Services Program - Probation Analysis - " + SelectedPlan.PlanName;

            GetAssociatedReviewsFromFundAndPlan(SelectedFund.FundId, SelectedPlan.PlanId);

            this.Show();
            ss.Close();
        }
        public frmAddExistingItem(frmMain mf, string _FormType, Guid RegardingId1, string RegardingId2, FormClosedEventHandler Close)
        {
            Presentation.Forms.frmSplashScreen ss = new Presentation.Forms.frmSplashScreen();
            ss.Show();
            Application.DoEvents();

            InitializeComponent();
            frmMain_Parent = mf;

            Application.AddMessageFilter(this);
            controlsToMove.Add(this.label1);
            controlsToMove.Add(this.label23);
            controlsToMove.Add(this.panel2);
            controlsToMove.Add(this.panel16);
            controlsToMove.Add(this.pictureBox1);

            this.FormClosed += Close;

            FormType = _FormType;

            if (FormType == "Custodian")
            {
                FormType = "Custodian";

                label23.Text         = "Add a custodian";
                labelRegarding1.Text = "Plan";
                label31.Text         = "Select a custodian";

                try
                {
                    Business.Entities.Plan plan = new Business.Entities.Plan(RegardingId1);
                    PlanId        = plan.PlanId;
                    textBox7.Text = plan.PlanName;
                }
                catch (Exception ex)
                {
                    frmError _frmError = new Presentation.Forms.frmError(frmMain_Parent, ex);
                }
            }
            else if (FormType == "Plan")
            {
                FormType = "Plan";

                label23.Text         = "Add a plan";
                labelRegarding1.Text = "Fund";
                label31.Text         = "Select a plan";

                try
                {
                    Fund details = new Fund(RegardingId1, null);
                    FundId        = details.FundId;
                    textBox7.Text = details.FundName;
                }
                catch (Exception ex)
                {
                    frmError _frmError = new Presentation.Forms.frmError(frmMain_Parent, ex);
                }
            }
            else if (FormType == "Fund")
            {
                FormType = "Fund";

                label23.Text         = "Add a fund";
                labelRegarding1.Text = "Plan";
                label31.Text         = "Select a fund";

                try
                {
                    Business.Entities.Plan plan = new Business.Entities.Plan(RegardingId1);
                    PlanId        = plan.PlanId;
                    textBox7.Text = plan.PlanName;
                }
                catch (Exception ex)
                {
                    frmError _frmError = new Presentation.Forms.frmError(frmMain_Parent, ex);
                }
            }

            ss.Close();
            this.Show();
            txtSearch.Select();
        }