private void btnNew_Click(object sender, RoutedEventArgs e) { font = new FontFile(); Properties.Settings.Default.font_file = font.Path; Properties.Settings.Default.Save(); }
public MainWindow() { InitializeComponent(); timer = new Timer(); timer.Interval = 2000; timer.Elapsed += Timer_Elapsed; timer.Enabled = true; timer.Start(); font = new FontFile(); DataContext = this; }