Exemple #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>
        private void OnGenerateManifestProgressChanged(object sender, ManifestGenerationProgressChangedEventArgs e)
        {
            Application.Invoke(delegate
            {
                string progressString   = this.LocalizationCatalog.GetString("{0} : {1} out of {2}");
                this.progressLabel.Text = string.Format(progressString, e.Filepath, e.CompletedFiles, e.TotalFiles);

                this.progressbar.Fraction = e.CompletedFiles / (double)e.TotalFiles;
            });
        }
Exemple #2
0
 private static void OnProgressChanged(object sender, ManifestGenerationProgressChangedEventArgs e)
 {
     Log.Info($"Processed file {e.Filepath} : {e.Hash} : {e.Filesize}");
 }
Exemple #3
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));
 }