示例#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;
 }
示例#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;
        }