Esempio n. 1
0
        public override string ToString()
        {
            string specString = string.Empty;

            specString += string.Format("{0,-26}{1}{2}", "Filename:", FileNameParsed, Environment.NewLine);
            specString += string.Format("{0,-26}{1:#####0}{2}", "PackageLength:", PackageLength, Environment.NewLine);
            specString += string.Format("{0,-26}{1}{2}", "PackageName:", PackageName, Environment.NewLine);
            specString += string.Format("{0,-26}{1}{2}", "PackageHash:", PackageHash, Environment.NewLine);
            specString += string.Format("{0,-26}{1}{2}", "AnyErrors:", HasErrors.ToString(), Environment.NewLine);

            if (HasErrors)
            {
                specString += string.Format("{0,-26}{1:##0}{2}", "Parse Errors:", Procedures.CountParseErrors, Environment.NewLine);
                specString += string.Format("{0,-26}{1:##0}{2}", "NotSupported Errors:", Procedures.CountNotSupported, Environment.NewLine);
            }

            specString += string.Format("{0,-26}{1:##0}/{2:##0}{3}", "Procedures (Valid/Total):", Procedures.Count - Procedures.CountParseErrors - Procedures.CountNotSupported, Procedures.Count, Environment.NewLine);

            specString += Procedures.ToString();

            return(specString);
        }
Esempio n. 2
0
 void OnHasErrors(string message)
 {
     Error = message;
     HasErrors?.Invoke(this, message);
 }
Esempio n. 3
0
 public PlanExecutionEvents OnHasErrors(bool hasErrors, string statusText = "")
 {
     HasErrors?.Invoke(this, new PlanHasErrorsUpdatedEventArgs(backupPlan, hasErrors, statusText));
     return(this);
 }