// TODO: Add methods that will be called by the view #endregion #region Completion Callbacks // TODO: Optionally add callback methods for async calls to the service agent /// <summary> /// Completion for frequency Table /// </summary> /// <param name="result"></param> /// <param name="e"></param> private void GetStatCalcTableCompleted(StatCalcDTO result, Exception e) { if (e != null) { NotificationEventArgs <Exception> notification = new NotificationEventArgs <Exception>("", e); this.Notify(ErrorNotice, notification); } else { this.statCaldto = result; Notify(SingleTableLoadedEvent, new NotificationEventArgs <Exception>()); } }
void statcalcresults_Completed(object sender, EventArgs e) { InvokeOperation <StatCalcDTO> result = (InvokeOperation <StatCalcDTO>)sender; if (result.HasError) { ex = result.Error; result.MarkErrorAsHandled(); } //else //{ StatCalcDTO returnedData = ((InvokeOperation <StatCalcDTO>)sender).Value; _completed(returnedData, null); //} }