protected CompareValue(SerializationInfo info, StreamingContext context) { _expression1 = info.GetString("Expression1"); _expression2 = info.GetString("Expression2"); _performance = (IndicatorPerformance)info.GetValue("Performance", typeof(IndicatorPerformance)); _viewtype = (IndicatorViewType)info.GetValue("ViewStyle", typeof(IndicatorViewType)); _scriptid = info.GetString("ScriptID"); _flagonbadonly = info.GetBoolean("FlagOnBadOnly"); }
public CompareValue(CompareValue cv) { _expression1 = cv.Expression1; _expression2 = cv.Expression2; _performance = cv.Performance; _viewtype = cv.ViewStyle; _scriptid = Guid.NewGuid().ToString().Replace('-', '_'); _flagonbadonly = cv.FlagOnBadOnly; }