private bool EscrowProfiles_Add() { Settings.EscrowProfile p = new Settings.EscrowProfile(); p._ProfileName = EscrowProfiles.Names.Text; p.Officer = EscrowOfficer.Text; p.TitleCompany = EscrowTitleCompany.Text; string m1 = ""; string m2 = " is not set."; if (string.IsNullOrWhiteSpace(p._ProfileName)) { Message.Exclaim(m1 + "Escrow ProfileName" + m2); return(false); } if (string.IsNullOrWhiteSpace(p.Officer)) { Message.Exclaim(m1 + "EscrowOfficer" + m2); return(false); } if (string.IsNullOrWhiteSpace(p.TitleCompany)) { Message.Exclaim(m1 + "EscrowTitleCompany" + m2); return(false); } Settings.Parties.EscrowProfileNames2EscrowProfile[EscrowProfiles.Names.Text] = p; return(true); }
private void EscrowProfiles_Select() { if (EscrowProfiles.Names.SelectedItem == null) { EscrowOfficer.Text = ""; EscrowTitleCompany.Text = ""; return; } Settings.EscrowProfile p = Settings.Parties.EscrowProfileNames2EscrowProfile[(string)EscrowProfiles.Names.SelectedItem]; EscrowOfficer.Text = p.Officer; EscrowTitleCompany.Text = p.TitleCompany; }