コード例 #1
0
ファイル: FormMain.cs プロジェクト: ed-shin/CSharp
        public FormMain()
        {
            InitializeComponent();

            ColorOnMouse.UsageDPI();

            MouseHook.Start();
            MouseHook.MouseAction += MouseHook_MouseAction;

            KeyboardHook.Start();
            KeyboardHook.KeyboardAction += KeybordHook_KeyboardAction;

            this.picImage.Paint  += picImage_Paint;
            this.picExpand.Paint += PicExpand_Paint;
            this.picColor.Paint  += PicColor_Paint;

            this.tbR.TextChanged   += Tb_TextChanged;
            this.tbG.TextChanged   += Tb_TextChanged;
            this.tbB.TextChanged   += Tb_TextChanged;
            this.tbHex.TextChanged += Tb_TextChanged;

            this.btnCopyRGB.MouseLeave += setMouseHook;
            this.btnCopyRGB.MouseHover += unMouseHook;
            this.btnCopyHEX.MouseLeave += setMouseHook;
            this.btnCopyHEX.MouseHover += unMouseHook;

            this.radioBackColor.MouseLeave += setMouseHook;
            this.radioBackColor.MouseHover += unMouseHook;
            this.radioForeColor.MouseLeave += setMouseHook;
            this.radioForeColor.MouseHover += unMouseHook;
        }