Пример #1
0
        internal MainForm()
        {
            InitializeComponent();
            SetStyle(ControlStyles.ResizeRedraw, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.StandardDoubleClick, true);


            //读取程序配置
            InitAppSetting();

            notifyIcon.Text = Text;
            BackgroundImage = image;

            //变量初始化
            bmp = new Bitmap(ClientRectangle.Width, ClientRectangle.Height);


            drawingFormHelper     = new DrawingFormHelper(this);
            calculateRegionHelper = new CalculateRegionHelper(this);


            for (int i = 0; i < 54; i++)
            {
                cardsImages[i] = null; //初始化
            }
        }
Пример #2
0
        internal MainForm()
        {
            InitializeComponent();
            SetStyle(ControlStyles.ResizeRedraw, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.StandardDoubleClick, true);

           
            //读取程序配置
            InitAppSetting();
            
            notifyIcon.Text = Text;
            BackgroundImage = image;
        
            //变量初始化
            bmp = new Bitmap(ClientRectangle.Width, ClientRectangle.Height);
            
            
            drawingFormHelper = new DrawingFormHelper(this);
            calculateRegionHelper = new CalculateRegionHelper(this);


            for (int i = 0; i < 54; i++)
            {
                cardsImages[i] = null; //初始化
            }
        }