Beispiel #1
0
 private void HandleWarningsErrors(PipelineReader <object> pipelineerrors)
 {
     foreach (string warning in hostinterface.Warnings)
     {
         PSAlert.Add(warning, psmethods.PSAlert.AlertType.Warning);
     }
     if (pipelineerrors.Count > 0)
     {
         Collection <object> errors = pipelineerrors.ReadToEnd();
         foreach (object error in errors)
         {
             PSAlert.Add(error.ToString(), psmethods.PSAlert.AlertType.Error);
         }
     }
     hostinterface.ClearWarnings();
 }