예제 #1
0
        // ====================================================
        // 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();
        }
예제 #2
0
 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;
     }
 }
예제 #3
0
 private void LogNowRunningTool(string netlist)
 {
     LogWindowContents = LogWindowContents.AppendLine($"{DateTime.Now}: Running {_currentTool} (netlist = {Path.GetFileName(netlist)}).");
 }