예제 #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
파일: MainWindow.cs 프로젝트: pascalfr/MPfm
		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);
     });
 }