public WorkWindow(UserManager manager, UserModel model, CultureInfo lang) { Thread.CurrentThread.CurrentUICulture = lang; InitializeComponent(); _monitor = new MonitoringModel(manager, model); _currentLang = lang; DataContext = _monitor; AddHandler(Validation.ErrorEvent, new RoutedEventHandler(OnErrorEvent)); SetNewTheme(_monitor.CurrentTheme); }
internal ConfigurationManager(MonitoringModel model, string configPath, LoggerManager logger) { SettingsCounters = new Dictionary <string, SystemCharacterNode>(); _model = model; _configurationPath = configPath; _logger = logger; _serializer = new XmlSerializer(typeof(List <SystemCharacterNode>)); if (FileManager.CheckFile(configPath)) { LoadSettingsCounter(); } else { UploadSettingsCounter(); } }