Exemple #1
0
        public static void HotkeyConflict()
        {
            HuionMessageBox huionMessageBox = new HuionMessageBox();

            huionMessageBox.HintText     = ResourceCulture.GetString("SettingsHotkeyRegistered");
            huionMessageBox.btnOK.Click += new EventHandler(HotkeyConflictOKClick);
            huionMessageBox.btnOK.Text   = ResourceCulture.GetString("ChangeNow");
            huionMessageBox.Show();
        }
Exemple #2
0
        private static void UpdateNow()
        {
            HuionMessageBox huionMessageBox = new HuionMessageBox();

            huionMessageBox.HintText     = "发现新版本,是否立即更新?";
            huionMessageBox.btnOK.Click += new EventHandler(UpdateOnlineOKClick);
            huionMessageBox.btnOK.Text   = "立即完成更新";
            huionMessageBox.Show();
        }
Exemple #3
0
 private void HuionTalbet_Load(object sender, EventArgs e)
 {
     Fixer4Main.MainForm = (Form)this;
     if (!SettingsUtil.CheckHotkey(this.Handle))
     {
         HuionMessageBox.HotkeyConflict();
     }
     this.tsmiSettings.Image = (Image)ImageHelper.getDllImage("settings.png");
     this.Icon = ImageHelper.getDllIcon("32.ico", HNStruct.OemType);
     MiddleModule.initMainFormHandle((Form)this);
     MiddleModule.eventPost += new Post(this.MiddleModule_eventPost);
     this.timer3.Start();
     Fixer4Main.setDisplayChangedCallback(
         new SystemSessionService.SystemDisplayChangedCallback(this.onDisplayChanged));
     Fixer4Main.listenSystemStatus();
     DeviceStatusUtils.deviceConfigListener +=
         new DeviceStatusUtils.DeviceConfigChanged(this.onDeviceConfigChanged);
     this.btnApplay.Click     += new EventHandler(Fixer4Main.applayClick);
     this.btnOK.Click         += new EventHandler(Fixer4Main.okClick);
     this.btnClose.Click      += new EventHandler(Fixer4Main.closeClick);
     this.btnAdmin.MouseDown  += new MouseEventHandler(this.btnColor);
     this.btnApplay.MouseDown += new MouseEventHandler(this.btnColor);
     this.btnOK.MouseDown     += new MouseEventHandler(this.btnColor);
     this.btnClose.MouseDown  += new MouseEventHandler(this.btnColor);
     this.btnAdmin.MouseUp    += new MouseEventHandler(this.btnColorDefault);
     this.btnApplay.MouseUp   += new MouseEventHandler(this.btnColorDefault);
     this.btnOK.MouseUp       += new MouseEventHandler(this.btnColorDefault);
     this.btnClose.MouseUp    += new MouseEventHandler(this.btnColorDefault);
     this.FormClosed          += new FormClosedEventHandler(Fixer4Main.FormClosed);
     this.KeyDown             += new KeyEventHandler(KeyboardUtils.onKeyDown);
     this.displayFormation();
     this.KeyPreview = true;
     this.buttonInfo_Click(sender, (EventArgs)null);
     this.SetDisplayMonitors();
     this.panelHotKey.MouseMove    += new MouseEventHandler(Fixer4Main.onMouseMove);
     this.panelInfo.MouseMove      += new MouseEventHandler(Fixer4Main.onMouseMove);
     this.panelTabletPen.MouseMove += new MouseEventHandler(Fixer4Main.onMouseMove);
     this.panelWorkArea.MouseMove  += new MouseEventHandler(Fixer4Main.onMouseMove);
     this.panel1.MouseMove         += new MouseEventHandler(Fixer4Main.onMouseMove);
     this.btnAdmin.Click           += new EventHandler(Fixer4Main.adminClick);
     this.panelHotKey.Tag           = (object)TabType.TabHotkey;
     this.panelInfo.Tag             = (object)TabType.TabInfo;
     this.panelTabletPen.Tag        = (object)TabType.TabTabletPen;
     this.panelWorkArea.Tag         = (object)TabType.TabWorkArea;
     TimerSession.UserLongtimeNoOperationListener +=
         new TimerSession.UserLongtimeNoOperationCallback(this.onUserLongtimeNoOperation);
     TimerSession.AutoOperationListener += new ElapsedEventHandler(Fixer4Main.T_Elapsed);
     new Thread(new ThreadStart(myThread)).Start();
     this.timer2.Start();
     this.Hide();
     this.WindowState             = FormWindowState.Minimized;
     this.notifyIcon1.MouseClick += new MouseEventHandler(this.notifyIcon1_MouseClick);
 }
Exemple #4
0
 private static bool SettingIconChange()
 {
     try
     {
         return(HuionMessageBox.compareVersion());
     }
     catch (Exception ex)
     {
         HuionLog.saveLog(nameof(SettingIconChange), ex.Message);
         return(false);
     }
 }
Exemple #5
0
        public static void UpdateOnline()
        {
            if (compareVersion())
            {
                return;
            }
            HuionMessageBox huionMessageBox = new HuionMessageBox();

            huionMessageBox.HintText     = "发现新版本,是否立即更新?";
            huionMessageBox.btnOK.Click += new EventHandler(UpdateOnlineOKClick);
            huionMessageBox.btnOK.Text   = "立即更新";
            huionMessageBox.Show();
        }
Exemple #6
0
 private static void buttonClick2(object sender, EventArgs e)
 {
     ((Control)sender).FindForm().Close();
     HuionMessageBox.changeForm();
 }