private void NewEmail(object notUsed) { NewEmailUseCase newEmailUseCase = ApplicationModel.CreateObjectInScopedRegionManager<NewEmailUseCase>(); newEmailUseCase.Message = new EmailMessage(); ApplicationModel.ShowUseCase(newEmailUseCase); }
private void ReplyToEmail(object notUsed) { EmailMessage currentEmail = this.emailViewModel.SelectedEmail.Value; if (currentEmail == null) return; NewEmailUseCase newEmailUseCase = ApplicationModel.CreateObjectInScopedRegionManager<NewEmailUseCase>(); newEmailUseCase.Message = new EmailMessage() { Body = "------------------------------------------------\r\n" + currentEmail.Body, From = currentEmail.To, To = currentEmail.From, Subject = "Re: " + currentEmail.Subject }; ApplicationModel.ShowUseCase(newEmailUseCase); }