public FormUpdateMessage() { this.InitializeComponent(); this.Icon = ImageHelper.getDllIcon("32.ico", HNStruct.OemType); this.Text = Fixer4Main.FormTitle(); this.CenterToScreen(); }
public HuionMessageBox() { this.InitializeComponent(); this.ShowSettingsIcon = false; this.Icon = ImageHelper.getDllIcon("32.ico", HNStruct.OemType); this.Text = Fixer4Main.FormTitle(); this.CenterToScreen(); }
private void setViewText8Locale() { this.panelHotKey.Text = ResourceCulture.GetString("FormHuionTablet_lbHotKeyText"); this.panelTabletPen.Text = ResourceCulture.GetString("FormHuionTablet_lbTabletPenText"); this.panelWorkArea.Text = ResourceCulture.GetString("FormHuionTablet_lbWorkAreaText"); this.panelInfo.Text = ResourceCulture.GetString("FormHuionTablet_lbInfoText"); this.btnOK.Text = ResourceCulture.GetString("FormHuionTablet_btOKText"); this.btnClose.Text = ResourceCulture.GetString("closeForm"); this.btnApplay.Text = ResourceCulture.GetString("FormHuionTablet_btAppText"); this.Text = Fixer4Main.FormTitle(); HNStruct.tabletTextInfo = Fixer4Main.getStatusText(false); this.labelTabletState.Enabled = false; this.labelTabletState.Text = HNStruct.tabletTextInfo; this.tsmiExit.Text = ResourceCulture.GetString("FormHuionTablet_exit"); this.tsmiSettings.Text = ResourceCulture.GetString("SettingsTitle"); this.notifyIcon1.Text = ResourceCulture.GetString("FormHuionTabletNotifyIconText"); this.btnAdmin.Text = ResourceCulture.GetString("applyAdmin"); }
private static void Main(string[] args) { HNStruct.OemType = DeployConfig.getOemType(); HuionLog.listenGlobalCrashLog(); ResourceCulture.init(); TimerSession.startListenUserOperation(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); bool flag = false; try { flag = Utils.isAppRunning(); } catch { Utils.runAsAdmin(true); return; } if (new Mutex(true, "OnlyRun").WaitOne(0, false)) { Application.Run((Form) new HuionTalbet()); } else { if (Utils.isStartup(args) || HuionDriverDLL.PostMessage(HuionDriverDLL.FindWindow((string)null, Fixer4Main.FormTitle()), 1054, IntPtr.Zero, IntPtr.Zero) != 0) { return; } Utils.runAsAdmin(true); } }