public MainWindow() { _style = new ApplicationStyle(this); _basics = new ApplicationBasics(); InitializeComponent(); _bw = new BackgroundWorker(); TaskbarItemInfo = new TaskbarItemInfo(); _style.Load(); ValidateForm(); _checkFileDates = new CheckFileDates(); }
public MainWindow() { InitializeComponent(); IAppSettingsBase appSettingsBase = new AppSettingsBase(Settings.Default); IApplicationStyleSettings applicationStyleSettings = new ApplicationStyleSettings(appSettingsBase); IThemeManagerHelper themeManagerHelper = new ThemeManagerHelper(); _applicationStyle = new ApplicationStyle(this, Accent, ThemeSwitch, applicationStyleSettings, themeManagerHelper); _applicationStyle.Load(true); _rotateDisplay = new RotateDisplay(); _rotateButtonAndCanvas = new RotateButtonAndCanvas(); Load(); var linkerTime = Assembly.GetExecutingAssembly().GetLinkerTime(); LinkerTime.Content = linkerTime.ToString(CultureInfo.InvariantCulture); Application.Current.Exit += CurrentExit; _overrideProtection = 1; ConfigureAutoRun(); }
// 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(); }