Пример #1
0
 private void Load(string path)
 {
     if (File.Exists(path))
     {
         SerializeStatic.Load(typeof(Settings), path);
     }
 }
Пример #2
0
 /// <summary>
 /// Handles the Click event of the BtnSave control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
 private void BtnSave_Click(object sender, RoutedEventArgs e)
 {
     SerializeStatic.Save(typeof(Settings), MainWindow.Path);
     BtnSave.IsEnabled = false;
 }