public void RefreshStatus(UpdateLibraryEntity entity) { Dispatcher.BeginInvoke(DispatcherPriority.Background, new Action(() => { lblTitle.Text = entity.Title; lblSubtitle.Text = entity.Subtitle; progressBar.Value = entity.PercentageDone*100; })); }
public void RefreshStatus(UpdateLibraryEntity entity) { InvokeOnMainThread(() => { if(lblSubtitle.Text == entity.Title) return; lblTitle.Text = "Updating library"; lblSubtitle.Text = entity.Title + "..."; }); }
public void RefreshStatus(UpdateLibraryEntity entity) { Console.WriteLine("UpdateLibraryWindow - RefreshStatus - {0}", entity.Title); Gtk.Application.Invoke(delegate{ if(entity.Exception != null) { TextIter textIter = textviewErrorLog.Buffer.EndIter; textviewErrorLog.Buffer.Insert(ref textIter, entity.FilePath + "\n"); textviewErrorLog.ScrollToIter(textviewErrorLog.Buffer.EndIter, 0, false, 0, 0); } else { lblTitle.Text = entity.Title; lblSubtitle.Text = entity.Subtitle; lblPercentage.Text = entity.PercentageDone.ToString("00.00%"); progressbar.Fraction = entity.PercentageDone; } }); }
/// <summary> /// Initializes a new instance of the <see cref="RefreshStatusEventArgs"/> class. /// </summary> /// <param name='entity'>Entity for updating library</param> public RefreshStatusEventArgs(UpdateLibraryEntity entity) { this.Entity = entity; }
public void RefreshStatus(UpdateLibraryEntity entity) { }
public void RefreshStatus(UpdateLibraryEntity entity) { InvokeOnMainThread(() => { lblTitle.StringValue = entity.Title; lblSubtitle.StringValue = entity.Subtitle; lblPercentageDone.StringValue = (entity.PercentageDone * 100).ToString("0.0") + " %"; progressBar.DoubleValue = (double)entity.PercentageDone * 100; }); }
public void RefreshStatus(UpdateLibraryEntity entity) { Activity.RunOnUiThread(() => { _lblTitle.Text = entity.Title; _lblSubtitle.Text = entity.Subtitle; }); }
protected virtual void OnRaiseRefreshStatusEvent(UpdateLibraryEntity entity) { EventHandler<RefreshStatusEventArgs> handler = RaiseRefreshStatusEvent; if(handler != null) handler(this, new RefreshStatusEventArgs(entity)); }
public void RefreshStatus(UpdateLibraryEntity entity) { //Console.WriteLine("IUpdateLibraryView - RefreshStatus - status: {0} progress: {1}", entity.Title, entity.PercentageDone); InvokeOnMainThread(delegate { lblUpdateLibraryStatus.StringValue = entity.Title; progressBarUpdateLibrary.Value = Math.Min(1, entity.PercentageDone); }); }