コード例 #1
0
        private static void Main()
        {
            using (new Mutex(true, Constants._MutexName, out bool createdNew))
            {
                Osu.Show();
                if (createdNew)
                {
                    // 업데이트 전의 파일 삭제
                    Task.Run(() => IO.FileEx.PostDel(Application.ExecutablePath + Constants._BakExt));

                    Osu.RunMessageServer();
                    Osu.ListenMessageAsync();
                    Osu.HookKeyboard();

                    Application.EnableVisualStyles();
                    Application.SetCompatibleTextRenderingDefault(false);
                    Application.Run(new CanvasForm());

                    Osu.UnhookKeyboard();
                }
            }
        }
コード例 #2
0
 private void Lyrics_FormClosing(object sender, FormClosingEventArgs e)
 {
     Osu.UnhookKeyboard();
 }