public async void ReadDataAsync() { BoardsReadCompletedEventArgs args = await Task <BoardsReadCompletedEventArgs> .Factory.StartNew(() => { try { List <IBoard> list = ReadData().ToList(); return(new BoardsReadCompletedEventArgs(list)); } catch (Exception ex) { return(new BoardsReadCompletedEventArgs(ex)); } }); if (args.Error == null) { this.Boards = args.Result; } DataReadCompleted?.Invoke(args); }
internal void OnDataReadCompleted(DataReadCompleteArgs args) { DataReadCompleted?.Invoke(this, args); }
protected virtual void OnDataReadCompleted(ExportCompleteArgs e) { DataReadCompleted?.Invoke(this, e); }