예제 #1
0
        // /////////////////////////////////////////////////////////////////////////////////
        #endregion
        #region Constructors
        // /////////////////////////////////////////////////////////////////////////////////
        public SpinBox(SpinBoxTemplate template)
            : base(template)
        {
            MinimumValue = template.MinimumValue;
            MaximumValue = template.MaximumValue;
            SpinDelay    = template.SpinDelay;
            SpinSpeed    = template.SpinSpeed;
            Label        = template.Label;

            if (Label == null)
            {
                Label = "";
            }

            CurrentValue = template.StartingValue;
            if (CurrentValue < MinimumValue || CurrentValue > MaximumValue)
            {
                CurrentValue = MinimumValue;
            }



            HasFrame             = true;
            CanHaveKeyboardFocus = false;
            HilightWhenMouseOver = false;
        }
예제 #2
0
파일: SpinBox.cs 프로젝트: AIBrain/ochregui
        // /////////////////////////////////////////////////////////////////////////////////
        public SpinBox(SpinBoxTemplate template)
            : base(template)
        {
            MinimumValue = template.MinimumValue;
            MaximumValue = template.MaximumValue;
            SpinDelay = template.SpinDelay;
            SpinSpeed = template.SpinSpeed;
            Label = template.Label;

            if (Label == null)
            {
                Label = "";
            }

            CurrentValue = template.StartingValue;
            if (CurrentValue < MinimumValue || CurrentValue > MaximumValue)
            {
                CurrentValue = MinimumValue;
            }

            HasFrame = true;
            CanHaveKeyboardFocus = false;
            HilightWhenMouseOver = false;
        }