Beispiel #1
0
 void miSetting_Click(object sender, EventArgs e)
 {
     SettingsForm f = new SettingsForm();
     f.ShowDialog();
     f.Dispose();
     this.commentViewer.Fps = Settings.CommentFps;
 }
Beispiel #2
0
        private void MainForm_Activated(object sender, EventArgs e)
        {
            this.Activated -= new EventHandler(MainForm_Activated);

            Cursor.Current = Cursors.WaitCursor;

            Settings.Load();
            this.commentViewer.Fps = Settings.CommentFps;

            while (!Login())
            {
                Cursor.Current = Cursors.Default;

                DialogResult r = MessageBox.Show("ログインに失敗しました。設定画面を表示しますか?", "ログイン失敗", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
                if (r == DialogResult.Yes)
                {
                    SettingsForm f = new SettingsForm();
                    f.ShowDialog();
                    f.Dispose();
                }
                else
                {
                    Shutdown();
                    break;
                }

                Cursor.Current = Cursors.WaitCursor;
            }

            Cursor.Current = Cursors.Default;

            if (client.IsLoggedIn)
            {
                ChannelSelect();
            }
        }