/// <summary>
        ///
        /// </summary>
        /// <param name="mf"></param>
        /// <param name="planAuditor"></param>
        /// <param name="Close"></param>
        public frmPlanAuditorFee(frmMain mf, VSP.Business.Entities.PlanAuditor planAuditor, FormClosedEventHandler Close = null)
        {
            frmSplashScreen ss = new frmSplashScreen();

            ss.Show();
            Application.DoEvents();

            InitializeComponent();

            frmMain_Parent = mf;

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

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

            FormClosed += Close;

            Plan plan = new Plan(planAuditor.PlanId);

            Business.Entities.Auditor auditor = new Business.Entities.Auditor(planAuditor.AuditorId);
            DataIntegrationHub.Business.Entities.Auditor plAd = new DataIntegrationHub.Business.Entities.Auditor(auditor.AuditorId);
            txtAuditor.Text = plAd.Name;

            CurrentPlanAuditorFee = new PlanAuditorFee();
            CurrentPlanAuditorFee.PlanAuditorId = planAuditor.Id;

            txtPlan.Text = plan.Name;

            CurrentTabLabel = label46; // Summary tab label
            highlightSelectedTabLabel(CurrentTabLabel);

            ss.Close();
            this.Show();
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="mf"></param>
        /// <param name="planAuditorFee"></param>
        /// <param name="Close"></param>
        public frmPlanAuditorFee(frmMain mf, PlanAuditorFee planAuditorFee, FormClosedEventHandler Close = null)
        {
            frmSplashScreen ss = new frmSplashScreen();

            ss.Show();
            Application.DoEvents();

            InitializeComponent();

            frmMain_Parent = mf;

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

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

            FormClosed += Close;

            Business.Entities.PlanAuditor planAuditor = new Business.Entities.PlanAuditor(planAuditorFee.PlanAuditorId);
            Plan plan = new Plan(planAuditor.PlanId);

            Business.Entities.Auditor auditor = new Business.Entities.Auditor(planAuditor.AuditorId);
            DataIntegrationHub.Business.Entities.Auditor dihAuditor = new DataIntegrationHub.Business.Entities.Auditor(auditor.AuditorId);

            CurrentPlanAuditorFee = planAuditorFee;
            txtPlan.Text          = plan.Name;
            txtAuditor.Text       = dihAuditor.Name;
            txtNotes.Text         = CurrentPlanAuditorFee.Notes;
            txtName.Text          = CurrentPlanAuditorFee.Name;

            txtNotes.Focus();

            if (CurrentPlanAuditorFee.Fee != null)
            {
                txtFee.Text = ((decimal)CurrentPlanAuditorFee.Fee).ToString("#,##");
            }

            if (CurrentPlanAuditorFee.Benchmark25Fee != null)
            {
                txtBenchmark25Fee.Text = ((decimal)CurrentPlanAuditorFee.Benchmark25Fee).ToString("#,##");
            }

            if (CurrentPlanAuditorFee.Benchmark50Fee != null)
            {
                txtBenchmark50Fee.Text = ((decimal)CurrentPlanAuditorFee.Benchmark50Fee).ToString("#,##");
            }

            if (CurrentPlanAuditorFee.Benchmark75Fee != null)
            {
                txtBenchmark75Fee.Text = ((decimal)CurrentPlanAuditorFee.Benchmark75Fee).ToString("#,##");
            }

            if (CurrentPlanAuditorFee.AsOfDate != null)
            {
                dateAsOfDate.Value   = (DateTime)CurrentPlanAuditorFee.AsOfDate;
                dateAsOfDate.Checked = true;
            }
            else
            {
                dateAsOfDate.Checked = false;
            }

            chbxRevenueSharingPaid.Checked = CurrentPlanAuditorFee.RevenueSharingPaid;
            chbxForfeituresPaid.Checked    = CurrentPlanAuditorFee.ForfeituresPaid;
            chbxParticipantsPaid.Checked   = CurrentPlanAuditorFee.ParticipantsPaid;
            chbxPlanSponsorPaid.Checked    = CurrentPlanAuditorFee.PlanSponsorPaid;

            CurrentTabLabel = label46; // Summary tab label
            highlightSelectedTabLabel(CurrentTabLabel);

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