Exemplo n.º 1
0
        public override void Reset()
        {
            base.Reset();

            fromOption = TargetValueOptions.CurrentValue;
            fromValue  = null;
            toOption   = TargetValueOptions.Value;
            toValue    = null;
        }
Exemplo n.º 2
0
        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();
            }
        }