예제 #1
0
 private void InitOptionForm()
 {
     if (!(option == null ||
           option.IsDisposed))
     {
         option.Activate();
         return;
     }
     try
     {
         option = new OptionForm();
     }
     catch (Exception ex)
     {
         ExceptionSender.ExceptionSendAsync(ex, true);
         MessageBox.Show(this, "설정 불러오기에 실패하여, 설정을 초기화 해야합니다.", "불러오기 실패", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
         Application.ExitThread();
         Environment.Exit(0);
         return;
     }
     option.ChannelChatState = b => channel.ChatTimer.Enabled = b;
     option.Show();
     option.Activate();
 }