예제 #1
0
 private void Repo_FileOperationProgress(object sender, string message)
 {
     try
     {
         var progress = JsonConvert.DeserializeObject <fileOpProgress>(message);
         FileOperationProgress?.Invoke(progress.filename, (GinRepository)sender, progress.GetProgress(),
                                       progress.rate, progress.state);
     }
     catch (Exception e)
     {
     }
 }
예제 #2
0
        private void Repo_FileOperationProgress(object sender, string message)
        {
            try
            {
                var    progress = JsonConvert.DeserializeObject <fileOpProgress>(message);
                string errorMsg = "";
                if (!string.IsNullOrEmpty(progress.err))
                {
                    errorMsg = " Error : " + progress.err;
                }
                FileOperationProgress?.Invoke(progress.filename, (GinRepository)sender, progress.GetProgress(),
                                              progress.rate, progress.state);

                AppIcon.BalloonTipText = progress.state + " " + progress.filename + " at " + progress.rate + ", " + progress.progress + " completed." + errorMsg;
                AppIcon.Text           = progress.state + ", " + progress.progress + " completed";
            }
            catch
            {
                AppIcon.BalloonTipText = "Error: Repo_FileOperationProgress";
            }
        }
예제 #3
0
 private void OnCmdLineOutput(object sender, string message)
 {
     FileOperationProgress?.Invoke(sender, message);
 }
예제 #4
0
 protected virtual void OnCmdLineOutput(object sender, string message)
 {
     FileOperationProgress?.Invoke(sender, message);
 }