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) { } }
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"; } }
private void OnCmdLineOutput(object sender, string message) { FileOperationProgress?.Invoke(sender, message); }
protected virtual void OnCmdLineOutput(object sender, string message) { FileOperationProgress?.Invoke(sender, message); }