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; }
/// <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)); }