Exemple #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;
 }
Exemple #2
0
 public DisplayFact(Individual ind, string surname, string forenames, Fact fact)
 {
     this.Ind        = ind;
     this.Surname    = surname;
     this.Forenames  = forenames;
     this.Fact       = fact;
     this.IgnoreFact = false;
     this.Icon       = FactImage.ErrorIcon(fact.FactErrorLevel).Icon;
 }
        public DisplayFact(Individual ind, string surname, string forenames, Fact fact)
        {
            Ind        = ind;
            Surname    = surname;
            Forenames  = forenames;
            Fact       = fact;
            IgnoreFact = false;
#if __PC__
            Icon = GraphicsUtilities.ResizeImageToCurrentScale(FactImage.ErrorIcon(fact.FactErrorLevel).Icon);
#endif
        }
Exemple #4
0
        public DisplayFact(Individual ind, string surname, string forenames, Fact fact)
        {
            Ind        = ind;
            Surname    = surname;
            Forenames  = forenames;
            Fact       = fact;
            IgnoreFact = false;
#if __PC__
            Icon = FactImage.ErrorIcon(fact.FactErrorLevel).Icon;
#endif
        }
Exemple #5
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;
        }