public frmAccount(frmMain mf, Guid accountId, 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.panel1); controlsToMove.Add(this.panel7); controlsToMove.Add(this.panel12); controlsToMove.Add(this.panel16); controlsToMove.Add(this.label1); controlsToMove.Add(this.label23); controlsToMove.Add(this.label30); controlsToMove.Add(this.label39); FormClosed += Close; loadObservationFields(); CurrentAccount = new Account(accountId); txtName.Text = CurrentAccount.Name; this.Text = CurrentAccount.Name; label18.Text = CurrentAccount.Name; label23.Text = CurrentAccount.Name; label30.Text = CurrentAccount.Name; txtEngagements.Text = CurrentAccount.Engagements; txtPrimaryContactName.Text = CurrentAccount.PrimaryContact.Name; txtPrimaryContactEmail.Text = CurrentAccount.PrimaryContact.Email; assetvalue.Text = CurrentAccount.Revenue; txtPhone.Text = CurrentAccount.Telephone; txtFax.Text = CurrentAccount.Fax; txtAddressLine1.Text = CurrentAccount.PrimaryAddress.Line1; txtAddressLine2.Text = CurrentAccount.PrimaryAddress.Line2; txtAddressCity.Text = CurrentAccount.PrimaryAddress.City; txtAddressState.Text = CurrentAccount.PrimaryAddress.State; txtAddressZip.Text = CurrentAccount.PrimaryAddress.Zip; txtCommitteeMembers.Text = CurrentAccount.CommitteeMembers; txtRecordKeepers.Text = CurrentAccount.RecordKeepers; txtCustodians.Text = CurrentAccount.Custodians; foreach (DataRow dr in ISP.Business.Entities.Plan.GetAssociatedFromAccount(accountId).Rows) { cboSelectedPlan.Items.Add(new Utilities.ListItem(dr["Name"].ToString(), dr["ID"].ToString())); } if (cboSelectedPlan.Items.Count > 0) { cboSelectedPlan.SelectedIndex = 0; } if (txtPrimaryContactName.Text == "" || txtPrimaryContactName.Text == null) { txtPrimaryContactName.Cursor = System.Windows.Forms.Cursors.Arrow; } comboBox5.Items.Clear(); comboBox6.Items.Clear(); comboBox5.Items.Add(new ListItem("No Instructions On File", null)); comboBox6.Items.Add(new ListItem("No Instructions On File", null)); foreach (DataRow dr in Benchmarks.Get().Rows) { comboBox5.Items.Add(new ListItem(dr["FundName"].ToString(), dr["FundID"].ToString())); comboBox6.Items.Add(new ListItem(dr["FundName"].ToString(), dr["FundID"].ToString())); } ss.Close(); this.Show(); }