Example #1
0
        public void ToolsetSettings_FilePathAttribute_ShouldMatch()
        {
            ToolsetSettings   settings = new ToolsetSettings();
            FilePathAttribute attr     = (FilePathAttribute)settings.GetType().GetCustomAttribute(typeof(FilePathAttribute));

            Assert.AreEqual(attr.FilePath, "./Settings/Toolset.settings");
        }
Example #2
0
 private void ApplicationRoot_OnLoaded(object sender, RoutedEventArgs e)
 {
     _settings = _dataService.Load <ToolsetSettings>();
     ApplySavedSettings();
     _eventAggregator.GetEvent <ApplicationLoadedEvent>().Publish();
 }