// ReSharper restore PrivateFieldCanBeConvertedToLocalVariable /// <summary> /// MainWindows. /// Gets a new movie list instance. /// </summary> public MainWindow() { _appBasic = new AppBasic(this); _xmlSettings = new XmlSettings(); _xmlDatabase = new XmlDatabase(_xmlSettings); _movies = new Movies(_xmlDatabase); IAppSettingsBase appSettingsBase = new AppSettingsBase(Settings.Default); _coreSettings = new ApplicationStyleSettings(appSettingsBase); InitializeComponent(); var themeManagerHelper = new ThemeManagerHelper(); _style = new ApplicationStyle(this, Accent, ThemeSwitch, _coreSettings, themeManagerHelper); _style.Load(true, true); _dialogService = new DialogService(this); _addEdit = new AddEdit(this, _movies, _dialogService); ValidateSettings(); var linkerTime = Assembly.GetExecutingAssembly().GetLinkerTime(); LinkerTime.Content = linkerTime.ToString(CultureInfo.InvariantCulture); _appBasic.SetComboBoxItems(); }
/// <summary> /// Initialisiert eine neue Instanz der <see cref="T:System.Object" />-Klasse. /// </summary> public Movies(IXmlDatabase xmlDatabase) { _xmlDatabase = xmlDatabase ?? throw new ArgumentNullException(nameof(xmlDatabase)); }