Exemple #1
0
        private void FormLauncher_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (!TestDlg32Reg)
            {
                RegRun.UnRegLib("/s " + Application.StartupPath + "/lib/COMDLG32.OCX");
            }
            if (!TestComCTLReg)
            {
                RegRun.UnRegLib("/s " + Application.StartupPath + "/lib/MSCOMCTL.OCX");
            }

            try
            {
                RegUst.UnRegFile(".ust");
                RegUst.UnRegFile(".uar");
            }
            catch (Exception errorMsg)
            {
                MessageBox.Show(errorMsg.Message);
            }
            notifyIcon.ShowBalloonTip(5000, "UTAURtLibHelper - 启动器模式", "UTAU已退出", ToolTipIcon.Info);

            if (Directory.Exists(@".\lib"))
            {
                Directory.Delete(@".\lib");
            }
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 private void buttonUnRegFileLink_Click(object sender, EventArgs e)
 {
     try
     {
         RegUst.UnRegFile(".ust");
         RegUst.UnRegFile(".uar");
         MessageBox.Show("反注册成功");
     }
     catch (Exception errorMsg)
     {
         MessageBox.Show(errorMsg.Message);
     }
 }