Example #1
0
 public DataError(int errorType, Fact.FactError errorLevel, Individual ind, string description)
 {
     this.ErrorType   = DataErrorGroup.ErrorDescription(errorType);
     this.Icon        = FactImage.ErrorIcon(errorLevel).Icon;
     this.individual  = ind;
     this.family      = null;
     this.Description = description;
 }
Example #2
0
        public DataError(int errorType, Fact.FactError errorLevel, Individual ind, string description)
        {
            ErrorType = DataErrorGroup.ErrorDescription(errorType);
#if __PC__
            Icon = FactImage.ErrorIcon(errorLevel).Icon;
#elif __MACOS__
            if (errorLevel == Fact.FactError.ERROR)
            {
                System.Debug.WriteLine("nothing"); // stop compiler warning
            }
#endif
            individual  = ind;
            family      = null;
            Description = description;
        }
Example #3
0
        public static FactImage ErrorIcon(Fact.FactError errorLevel)
        {
            switch (errorLevel)
            {
            case Fact.FactError.GOOD:
            case Fact.FactError.IGNORE:
                return(GOOD);

            case Fact.FactError.WARNINGALLOW:
                return(WARNINGALLOW);

            case Fact.FactError.WARNINGIGNORE:
                return(WARNINGIGNORE);

            case Fact.FactError.ERROR:
                return(ERROR);

            case Fact.FactError.QUESTIONABLE:
                return(QUESTIONABLE);
            }
            return(GOOD);
        }
Example #4
0
 public FactImage(Fact.FactError errorLevel, Image img)
 {
     ErrorLevel = errorLevel;
     Icon       = img as Bitmap;
 }
Example #5
0
 public FactImage(Fact.FactError errorLevel, Image img)
 {
     this.ErrorLevel = errorLevel;
     this.Icon       = img as Bitmap;
 }