// ==================================================== // ViewModel Event Handlers. // ==================================================== private void TaskRunningFinished(object sender, ToolRunnerEventArgs e) { var message = e.Error ? e.ErrorMessage : "Done."; LogWindowContents = LogWindowContents.AppendLine($"{DateTime.Now}: {message}"); ProgressBarValue = 0; SpinnerActive = false; _netlistReadCommand = false; ProgressBarVisibility = Visibility.Hidden; RefreshFrameworkData(); }
public void UpdateLog(FileReadProgressEvent ev) { if (ev.Progress == 0) { LogWindowContents = LogWindowContents.AppendLine($"{DateTime.Now}: Reading netlist... ({ev.FileName})"); } if (ev.Progress == 100 && !_netlistReadCommand) { LogNowRunningTool(ev.FileName); SpinnerActive = true; } }
private void LogNowRunningTool(string netlist) { LogWindowContents = LogWindowContents.AppendLine($"{DateTime.Now}: Running {_currentTool} (netlist = {Path.GetFileName(netlist)})."); }