private void FormLauncher_Load(object sender, EventArgs e) { if (!TestDlg32Reg) { RegRun.RegLib("/s " + Application.StartupPath + "/lib/COMDLG32.OCX"); } if (!TestComCTLReg) { RegRun.RegLib("/s " + Application.StartupPath + "/lib/MSCOMCTL.OCX"); } try { RegUst.RegFile(utauFile, ".ust"); RegUst.RegFile(utauFile, ".uar"); } catch (Exception errorMsg) { MessageBox.Show(errorMsg.Message); } WindowState = FormWindowState.Minimized; ShowInTaskbar = false; notifyIcon.Visible = true; runUTAU(utauFile); notifyIcon.ShowBalloonTip(1000); }
private void buttonRegFileLink_Click(object sender, EventArgs e) { try { RegUst.RegFile(utauFile, ".ust"); RegUst.RegFile(utauFile, ".uar"); MessageBox.Show("注册成功"); } catch (Exception errorMsg) { MessageBox.Show(errorMsg.Message); } }