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; }
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; }
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); }
public FactImage(Fact.FactError errorLevel, Image img) { ErrorLevel = errorLevel; Icon = img as Bitmap; }
public FactImage(Fact.FactError errorLevel, Image img) { this.ErrorLevel = errorLevel; this.Icon = img as Bitmap; }