private void lnkFontSettings_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { FontSettings fs = new FontSettings(); if (fs.ShowDialog() == DialogResult.OK) { } }
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(); }