public void ShowEmail(BOEmail model) { if (IsInvalid(mFrmEmail)) { mFrmEmail = new DacII.WinForms.Email.FrmEmail(mApplicationController, model); } else { mFrmEmail.UpdateView(); } SetCurrentDlg(mFrmEmail); }
public FrmEmail(ApplicationPresenter ap, BOEmail cards) : base(ap) { InitializeComponent(); mCardModel = cards; Subject = cards.Subject; Message = cards.Body; foreach (string attachment in cards.Attachments) { this.Attachments.Add(attachment); } }