public bool Set(Condition.Level level, string text = "", string qualifier = "", string severity = "") { base.mChanged = (((level != this.mLevel) || (text != this.mText)) || (qualifier != this.mQualifier)) || (severity != this.mNativeSeverity); if (base.mChanged) { this.mLevel = level; this.mQualifier = qualifier; this.mText = text; this.mNativeSeverity = severity; } this.mMarked = true; return(base.mChanged); }
public Active(string name, Condition.Level level, string text = "", string code = "", string qualifier = "", string severity = "") : base(name) { this.mMarked = true; this.mPlaceholder = false; this.mLevel = level; this.mText = text; this.mNativeCode = code; this.mQualifier = qualifier; this.mNativeSeverity = severity; base.mNewLine = true; if ((this.mNativeCode.Length == 0) && ((this.mLevel == Condition.Level.NORMAL) || (this.mLevel == Condition.Level.UNAVAILABLE))) { this.mPlaceholder = true; } }