Beispiel #1
0
		private IAsyncResult UpdateProgress(FileReadEventArgs e)
		{
			if (InvokeRequired)
			{
				return BeginInvoke(new UpdateProgressDelegate(UpdateProgress), new object[] {e});
			}

			lblName.Text = e.File.DisplayName;
			progressBar1.Maximum = e.TotalFiles;
			progressBar1.Value++;
			return null;
		}
Beispiel #2
0
		private void OnReadFile(object sender, FileReadEventArgs e)
		{
			UpdateProgress(e);
		}
Beispiel #3
0
		static void OnReadFile(object sender, FileReadEventArgs e)
		{
			m_spinner.Turn();
		}