private void SearchEngineOnFilesLoaded(object sender, OperationResultEventArgs args) { _typedEventSender.SendEventAsync(new SearchEngineFilesLoaded { OperationId = args.OperationId, Error = ErrorResponseHelper.CreateErrorResponse(args.Error) }); }
protected virtual void OnFilesLoaded(OperationResultEventArgs e) { EventHandler <OperationResultEventArgs> handler = FilesLoaded; if (handler != null) { handler(this, e); } }
void SetChildren(object sender, OperationResultEventArgs<ICollection<IDataModel>> e) { lock (sync) { if (e.Result.Count > 0x200) { using (Children.BeginUpdate()) { Children.Clear(); Children.Add(new Loading()); } } using (Children.BeginUpdate()) { Children.Clear(); foreach (var child in e.Result) Children.Add(child); } loadOp = null; } }
protected virtual void RaisePostingFinished(bool success, Exception e = null) { var eArgs = new OperationResultEventArgs(success, e); PostingFinished?.Invoke(this, eArgs); }
protected virtual void RaisePostingFinished(OperationResultEventArgs e) { PostingFinished?.Invoke(this, e); }
void RaiseLoginCompleted(bool success, Exception e = null) { var eArgs = new OperationResultEventArgs(success, e); LoginCompleted?.Invoke(this, eArgs); }
void RaiseLoginCompleted(OperationResultEventArgs e) { LoginCompleted?.Invoke(this, e); }
void OnCompleted(object sender, OperationResultEventArgs <CodeViewData> e) { view.SetData(e.Result); op = null; cancellation = null; }
protected virtual void OnOperationResultReceived(OperationResultEventArgs args) { OperationResultReceived?.Invoke(args); }
protected virtual void RaisePostingCompleted(bool successFlag, Exception e = null) { var args = new OperationResultEventArgs(successFlag, e); PostingCompleted?.Invoke(this, args); }