void LoadMessageBody() { if (selection.SelectedMessage == null || !ShouldLoadMessageBody || selection.SelectedMessage.BodyUrl.IsEmpty()) { return; } using (workNotifier.NotifyOfWork("Loading message body...")) { serviceControl.LoadBody(selection.SelectedMessage); RefreshChildren(); } }
void LoadMessageBody() { if (selection.SelectedMessage == null || !ShouldLoadMessageBody || selection.SelectedMessage.BodyUrl.IsEmpty()) { return; } eventAggregator.PublishOnUIThread(new WorkStarted("Loading message body...")); serviceControl.LoadBody(selection.SelectedMessage); RefreshChildren(); eventAggregator.PublishOnUIThread(new WorkFinished()); }
bool LoadMessageBody() { if (FocusedRow == null || !ShouldLoadMessageBody || FocusedRow.BodyUrl.IsEmpty()) { return(false); } eventAggregator.Publish(new WorkStarted("Loading message body...")); serviceControl.LoadBody(FocusedRow); //var body = serviceControl.GetBody(FocusedRow.BodyUrl); //FocusedRow.Body = body; eventAggregator.Publish(new WorkFinished()); return(true); }