Exemplo n.º 1
0
		void CallbackManager_ProgressEvent(FS2ProgressInfo fs2ProgressInfos)
		{
			Application.Current.Dispatcher.Invoke(new Action(() =>{
					ProgressInfos.Insert(0, fs2ProgressInfos);
					if (ProgressInfos.Count > 1000)
						ProgressInfos.RemoveAt(1000);
				}));
			Application.Current.Dispatcher.Invoke(DispatcherPriority.Background, new ThreadStart(delegate { }));
		}
Exemplo n.º 2
0
		static void OnProgressEvent(FS2ProgressInfo fs2ProgressInfo)
		{
			if (ProgressEvent != null)
				ProgressEvent(fs2ProgressInfo);
		}
Exemplo n.º 3
0
		public static void AddProgress(FS2ProgressInfo progressInfo)
		{
			FS2Contract.CheckCancellationRequested();
			Add(new FS2Callbac() { FS2ProgressInfo = progressInfo });
			OnProgressEvent(progressInfo);
		}