Defines a progress report
Inheritance: System.EventArgs
Exemplo n.º 1
0
		/// <summary>This is called whenever the progress changes</summary>
		public static void OnProgressChanged(object sender, ProgressReport progressReport)
		{
			if (ProgressChanged != null)
			{
				ProgressChanged(null, progressReport);
			}
		}
Exemplo n.º 2
0
		private void OnWorkerProgressChanged(object sender, ProgressReport e)
		{
			//We need to invoke the control so we don't get a cross thread exception
			if (this.InvokeRequired)
			{
				this.BeginInvoke((MethodInvoker) delegate
				{
					OnWorkerProgressChanged(sender, e);
				});
				return;
			}

			//Actually change the controls text
			labelProgressPercent.Text = e.Progress + @"%";
			labelProgressFile.Text = e.CurrentFile;
		}