Exemplo n.º 1
0
 void ClearAllData()
 {
     try
     {
         Process[] process = Process.GetProcesses();
         process.Where(x => x.Id == ProcessId).FirstOrDefault()?.Kill();
         ConsoleOutput.Clear();
         SerialOutput.Clear();
         ConsoleMonitorData = string.Empty;
         this.Dispatcher.Invoke(() =>
         {
             TextBlock_ConsoleMonitor.Text = string.Empty;
         });
         SerialMonitorData = string.Empty;
         foreach (var model in ResultsCollection)
         {
             model.IsSelected = false;
             model.Result     = string.Empty;
         }
         IMEINo     = null;
         SimNo      = null;
         TestResult = string.Empty;
     }
     catch (Exception ex)
     {
         Debug.WriteLine(ex.ToString());
     }
 }
Exemplo n.º 2
0
 public Comms( SerialOutput output )
 {
     outputToConsole = output;
 }