public App() { InitializeComponent(); Suspending += OnSuspending; LeavingBackground += OnLeavingBackground; // Initialize NLog Windows.Storage.StorageFolder storageFolder = Windows.Storage.ApplicationData.Current.LocalFolder; NLog.LogManager.Configuration.Variables["LogPath"] = storageFolder.Path; RegisterUncaughtExceptionLogger(); ConsentDialogDisplay = new Dialogs.ConsentDialog(); PropertiesDialogDisplay = new Dialogs.PropertiesDialog(); LayoutDialogDisplay = new Dialogs.LayoutDialog(); AddItemDialogDisplay = new Dialogs.AddItemDialog(); ExceptionDialogDisplay = new Dialogs.ExceptionDialog(); // this.UnhandledException += App_UnhandledException; Clipboard.ContentChanged += Clipboard_ContentChanged; Clipboard_ContentChanged(null, null); AppCenter.Start("682666d1-51d3-4e4a-93d0-d028d43baaa0", typeof(Analytics), typeof(Crashes)); SidebarPinned = new SidebarPinnedModel(); AppSettings = new SettingsViewModel(); InteractionViewModel = new InteractionViewModel(); SelectedItemsPropertiesViewModel = new SelectedItemsPropertiesViewModel(); DirectoryPropertiesViewModel = new DirectoryPropertiesViewModel(); }
public BaseLayout() { SelectedItemsPropertiesViewModel = new SelectedItemsPropertiesViewModel(this); DirectoryPropertiesViewModel = new DirectoryPropertiesViewModel(); // QuickLook Integration ApplicationDataContainer localSettings = ApplicationData.Current.LocalSettings; var isQuickLookIntegrationEnabled = localSettings.Values["quicklook_enabled"]; if (isQuickLookIntegrationEnabled != null && isQuickLookIntegrationEnabled.Equals(true)) { IsQuickLookEnabled = true; } }
public BaseLayout() { ItemManipulationModel = new ItemManipulationModel(); HookEvents(); jumpTimer = new DispatcherTimer(); jumpTimer.Interval = TimeSpan.FromSeconds(0.8); jumpTimer.Tick += JumpTimer_Tick; SelectedItemsPropertiesViewModel = new SelectedItemsPropertiesViewModel(this); DirectoryPropertiesViewModel = new DirectoryPropertiesViewModel(); // QuickLook Integration ApplicationDataContainer localSettings = ApplicationData.Current.LocalSettings; var isQuickLookIntegrationEnabled = localSettings.Values["quicklook_enabled"]; if (isQuickLookIntegrationEnabled != null && isQuickLookIntegrationEnabled.Equals(true)) { App.InteractionViewModel.IsQuickLookEnabled = true; } dragOverTimer = DispatcherQueue.GetForCurrentThread().CreateTimer(); }