private void TrayIcon_Shown(object o, EventArgs e) { try { Hide(); GlobalHandle = Handle; Globals.ProgramShutDown = ProgramShutDown; InitFunction.Init(); KeyboardHooker.HookStart(); if (Settings.IsFixClipboard) { ClipboardConverter.FixStart(); } MainWorker.RunWorkers(); commandList.Register("rl", "기", args => Invoke(new Action <string[]>(InitRoomListForm), args)); channel = new ChannelChatForm(); InitBanList(); channel.ChatTimer.Enabled = Settings.IsChannelChatDetect; InitMainForm(); main.Show(); main.Activate(); CheckLatestVersion(); DebugWarcraftOutput(); } catch (Exception ex) { ExceptionSender.ExceptionSendAsync(ex, true); MessageBox.Show(this, "설정 불러오기에 실패하여, 설정을 초기화 해야합니다.", "불러오기 실패", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1); Application.ExitThread(); Environment.Exit(0); } }