public override void Reset() { base.Reset(); fromOption = TargetValueOptions.CurrentValue; fromValue = null; toOption = TargetValueOptions.Value; toValue = null; }
protected void DoTargetValueGUI(TargetValueOptions option, string valueFieldName) { switch (option) { case TargetValueOptions.CurrentValue: break; case TargetValueOptions.Offset: EditField(valueFieldName, offsetLabel); break; case TargetValueOptions.Value: EditField(valueFieldName, valueLabel); break; default: throw new ArgumentOutOfRangeException(); } }