Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }