コード例 #1
0
ファイル: ValueBar.cs プロジェクト: vanattab/ochregui
        public ValueBar(ValueBarTemplate template)
            : base(template)
        {
            HasFrame = false;

            MinimumValue = template.MinimumValue;
            MaximumValue = template.MaximumValue;
            CurrentValue = template.StartingValue;

            rangeWidth = this.Size.Width - 2;

            BarPigment = template.BarPigment;

            minimumBGIntensity   = template.MinimumBGIntensity;
            minimumFGIntensity   = template.MinimumFGIntensity;
            CanHaveKeyboardFocus = template.CanHaveKeyboardFocus;
        }
コード例 #2
0
ファイル: ValueBar.cs プロジェクト: AIBrain/ochregui
        public ValueBar(ValueBarTemplate template)
            : base(template)
        {
            HasFrame = false;

            MinimumValue = template.MinimumValue;
            MaximumValue = template.MaximumValue;
            CurrentValue = template.StartingValue;

            rangeWidth = this.Size.Width - 2;

            BarPigment = template.BarPigment;

            minimumBGIntensity = template.MinimumBGIntensity;
            minimumFGIntensity = template.MinimumFGIntensity;
            CanHaveKeyboardFocus = template.CanHaveKeyboardFocus;
        }