コード例 #1
0
ファイル: FormMain.cs プロジェクト: nicholatian/monody
        private void iceChatSettingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //bring up a very basic settings form
            if (Application.OpenForms["FormSettings"] as FormSettings != null)
            {
                System.Diagnostics.Debug.WriteLine("Form Settings Open");
                Application.OpenForms["FormSettings"].BringToFront();
                return;
            }

            FormSettings fs = new FormSettings(iceChatOptions, iceChatFonts, iceChatEmoticons, iceChatSounds);
            fs.SaveOptions += new FormSettings.SaveOptionsDelegate(fs_SaveOptions);
            fs.Show(this);
        }
コード例 #2
0
ファイル: FormMain.cs プロジェクト: nicholatian/monody
        private void fontSettingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (Application.OpenForms["FormSettings"] as FormSettings != null)
            {
                Application.OpenForms["FormSettings"].BringToFront();
                return;
            }

            FormSettings fs = new FormSettings(iceChatOptions, iceChatFonts, iceChatEmoticons, iceChatSounds, true);
            fs.SaveOptions += new FormSettings.SaveOptionsDelegate(fs_SaveOptions);

            fs.Show(this);
        }