Example #1
0
 private void LoadSettings()
 {
     _configuration = new Configuration.ConfigurationObject();
     if (File.Exists(_configurationFileName))
     {
         var serializer = new XmlSerializer(typeof(Configuration.ConfigurationObject));
         _configuration = (Configuration.ConfigurationObject)serializer.Deserialize(new StreamReader(_configurationFileName, Encoding.Default));
     }
 }
 public override void Configure()
 {
     _configuration = new Configuration(_configuration).ShowConfigurationDialog();
     SaveSettings();
     SetupCommands();
 }
 private void LoadSettings()
 {
     _configuration = new Configuration.ConfigurationObject();
     if (File.Exists(_configurationFileName))
     {
         var serializer = new XmlSerializer(typeof(Configuration.ConfigurationObject));
         _configuration = (Configuration.ConfigurationObject)serializer.Deserialize(new StreamReader(_configurationFileName, Encoding.Default));
     }
 }