public void SaveOptions(Options options)
 {
     using (var stream = new FileStream(OptionsFileName, FileMode.Create, FileAccess.Write))
     {
         var xmlSerializer = new XmlSerializer(typeof(Options));
         xmlSerializer.Serialize(stream, options);
     }
 }
Exemplo n.º 2
0
 public OptionsViewModel(Options options)
 {
     _options = options;
     base.DisplayName = Application.Current.Resources["Options"].ToString();
 }