Пример #1
0
 public void RefreshStatus(UpdateLibraryEntity entity)
 {
     Dispatcher.BeginInvoke(DispatcherPriority.Background, new Action(() =>
     {
         lblTitle.Text = entity.Title;
         lblSubtitle.Text = entity.Subtitle;
         progressBar.Value = entity.PercentageDone*100;
     }));
 }
Пример #2
0
        public void RefreshStatus(UpdateLibraryEntity entity)
        {
            InvokeOnMainThread(() => {
				if(lblSubtitle.Text == entity.Title)
					return;

				lblTitle.Text = "Updating library";
				lblSubtitle.Text = entity.Title + "...";
            });
        }
Пример #3
0
		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;
				}
			});
		}
Пример #4
0
		/// <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;
		}
Пример #5
0
		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;
            });
		}
Пример #7
0
 public void RefreshStatus(UpdateLibraryEntity entity)
 {
     Activity.RunOnUiThread(() =>
     {
         _lblTitle.Text = entity.Title;
         _lblSubtitle.Text = entity.Subtitle;
     });
 }
Пример #8
0
		protected virtual void OnRaiseRefreshStatusEvent(UpdateLibraryEntity entity)
		{
			EventHandler<RefreshStatusEventArgs> handler = RaiseRefreshStatusEvent;
			if(handler != null)
				handler(this, new RefreshStatusEventArgs(entity));
		}
Пример #9
0
 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);
     });
 }