Пример #1
0
        private void lnkFontSettings_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FontSettings fs = new FontSettings();

            if (fs.ShowDialog() == DialogResult.OK)
            {
            }
        }
Пример #2
0
        private void Settings_Click(object sender, RoutedEventArgs e)
        {
            this.DataContext = this;
            Themes           = new ObservableCollection <string>();
            Themes.Add("Black on white");
            Themes.Add("Sepia");
            Themes.Add("Night");

            Fonts = new ObservableCollection <string>();

            foreach (System.Drawing.FontFamily font in System.Drawing.FontFamily.Families)
            {
                Fonts.Add(font.Name);
            }

            FontSettings newWindow = new FontSettings()
            {
                DataContext = this
            };

            newWindow.ShowDialog();
        }