黄学彪
2021-01-28 1fcf2302f79f9cbea5ef17c3688311ed65cfabb4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using Shared;
using System;
using System.Collections.Generic;
using System.Text;
 
namespace HDL_ON.Stan
{
    /// <summary>
    /// 做成一个显示图标的控件(需要手动开启点击状态)
    /// </summary>
    public class IconViewControl : ButtonCtrBase
    {
        /// <summary>
        /// 图标大小
        /// </summary>
        public int IconSize = 0;
        /// <summary>
        /// 做成一个显示图标的控件(需要手动开启点击状态)
        /// </summary>
        /// <param name="size">大小</param>
        /// <param name="real">是否计算真实值</param>
        public IconViewControl(int size, bool real = true)
        {
            this.InitIconSize(size, size, real);
            this.IconSize = size;
            if (real == true)
            {
                this.IconSize = this.GetPictrueRealSize(size);
            }
        }
    }
}