private void SearchEngineOnFilesLoaded(object sender, OperationResultEventArgs args)
 {
     _typedEventSender.SendEventAsync(new SearchEngineFilesLoaded {
     OperationId = args.OperationId,
     Error = ErrorResponseHelper.CreateErrorResponse(args.Error)
       });
 }
 private void SearchEngineOnFilesLoaded(object sender, OperationResultEventArgs args)
 {
     _typedEventSender.SendEventAsync(new SearchEngineFilesLoaded {
         OperationId = args.OperationId,
         Error       = ErrorResponseHelper.CreateErrorResponse(args.Error)
     });
 }
示例#3
0
        protected virtual void OnFilesLoaded(OperationResultEventArgs e)
        {
            EventHandler <OperationResultEventArgs> handler = FilesLoaded;

            if (handler != null)
            {
                handler(this, e);
            }
        }
示例#4
0
		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;
			}
		}
示例#5
0
        protected virtual void RaisePostingFinished(bool success, Exception e = null)
        {
            var eArgs = new OperationResultEventArgs(success, e);

            PostingFinished?.Invoke(this, eArgs);
        }
示例#6
0
 protected virtual void RaisePostingFinished(OperationResultEventArgs e)
 {
     PostingFinished?.Invoke(this, e);
 }
示例#7
0
        void RaiseLoginCompleted(bool success, Exception e = null)
        {
            var eArgs = new OperationResultEventArgs(success, e);

            LoginCompleted?.Invoke(this, eArgs);
        }
示例#8
0
 void RaiseLoginCompleted(OperationResultEventArgs e)
 {
     LoginCompleted?.Invoke(this, e);
 }
示例#9
0
 void OnCompleted(object sender, OperationResultEventArgs <CodeViewData> e)
 {
     view.SetData(e.Result);
     op           = null;
     cancellation = null;
 }
示例#10
0
 protected virtual void OnOperationResultReceived(OperationResultEventArgs args)
 {
     OperationResultReceived?.Invoke(args);
 }
示例#11
0
        protected virtual void RaisePostingCompleted(bool successFlag, Exception e = null)
        {
            var args = new OperationResultEventArgs(successFlag, e);

            PostingCompleted?.Invoke(this, args);
        }