private void Load(string path) { if (File.Exists(path)) { SerializeStatic.Load(typeof(Settings), path); } }
/// <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; }