Ejemplo n.º 1
0
		/// <summary>
		/// Updates the UI when a file is entered into the manifest.
		/// </summary>
		/// <param name="sender">Sender.</param>
		/// <param name="e">Arguments containing information about the entered file.</param>
		protected void OnGenerateManifestProgressChanged (object sender, ManifestGenerationProgressChangedEventArgs e)
		{
			Application.Invoke (delegate
			{
				progressLabel.Text = String.Format ("{0} : {1} out of {2}", e.Filepath, e.CompletedFiles, e.TotalFiles);

				progressbar.Fraction = (double)e.CompletedFiles / (double)e.TotalFiles;
			});
		}
Ejemplo n.º 2
0
		private static void OnProgressChanged (object sender, ManifestGenerationProgressChangedEventArgs e)
		{
			Console.WriteLine (String.Format ("[Info]: Processed file {0} : {1} : {2}", e.Filepath, e.MD5, e.Filesize.ToString ()));
		}
Ejemplo n.º 3
0
		private void OnProgressChanged (object sender, ManifestGenerationProgressChangedEventArgs e)
		{
			utilTools_progressBar.Maximum = e.TotalFiles;

			fileProgress_label.Text = String.Format (@"{0}/{1}", e.CompletedFiles, e.TotalFiles);
			fileProgress_label.Refresh ();

			currentFile_label.Text = e.Filepath;
			currentFile_label.Refresh ();

			utilTools_progressBar.Increment (1);
		}
Ejemplo n.º 4
0
		public ManifestHandler (string InTargetPath)
		{
			ProgressArgs = new ManifestGenerationProgressChangedEventArgs ();
			TargetPath = InTargetPath;
		}