public EventLogProvider() { var source = StateManager.Settings["EventLogSource"] as string; var log = StateManager.Settings["EventLog"] as string; appLog = new EventLog { Source = source, Log = log }; }