예제 #1
0
 public void RefreshStatus(UpdateLibraryEntity entity)
 {
 }
		public void RefreshStatus(UpdateLibraryEntity entity)
		{
			lblTitle.StringValue = entity.Title;
			lblSubtitle.StringValue = entity.Subtitle;
			lblPercentageDone.StringValue = (entity.PercentageDone * 100).ToString() + " %";
			progressBar.DoubleValue = (double)entity.PercentageDone * 100;
		}
예제 #3
0
		/// <summary>
		/// Raises the refresh status event. Wraps the event invocation by
		/// creating the event arguments from the entity.
		/// </summary>
		/// <param name='e'>Event arguments</param>		
		protected virtual void OnRaiseRefreshStatusEvent(UpdateLibraryEntity entity)
		{
			EventHandler<RefreshStatusEventArgs> handler = RaiseRefreshStatusEvent;
			if(handler != null)
				handler(this, new RefreshStatusEventArgs(entity));
		}