public LunchClubModel() { guestsModel = new SpecialGuestsModel(this); addModel.requestClose += addModel_requestClose; editModel.requestClose += editModel_requestClose; if (file.host != null) { smtp.Host = file.host; host = file.host; } if (file.subject != null) { subject = file.subject; } if (file.prefixText != null) { prefixText = file.prefixText; } if (file.postfixText != null) { postfixText = file.postfixText; } if (file.senderEmail != null) { senderEmail = file.senderEmail; } if (file.organizerEmails != null) { organizerEmails = file.organizerEmails; } }
public SpecialGuestsWindow(SpecialGuestsModel model) { InitializeComponent(); this.model = model; this.DataContext = model; }