private void _OnDisplaySettingsWindowRequested(object sender, SettingsWindowEventArgs e) { Views.SettingsWindowView settingsWindow = new Views.SettingsWindowView(e); settingsWindow.ShowActivated = true; settingsWindow.ShowInTaskbar = false; settingsWindow.Topmost = true; settingsWindow.Owner = this; settingsWindow.ShowDialog(); }
public SettingsWindowViewModel(SettingsWindowEventArgs args) { Settings = new FilerSettings(); AllowRepositioning = Settings.AllowRepositioning; DirectoryMonitor = args.DirectoryMonitor; RestrictedResultCountList = new List <int> { 10, 25, 50, 100, 200 }; m_directoryMonitor.ScanCompleted += _DirectoryMonitor_ScanCompleted; AddDirectoryCommand = new RelayCommand(_AddDirectory); RemoveDirectoryCommand = new RelayCommand(_RemoveDirectory); ScanDirectoriesCommand = new RelayCommand(_ScanDirectories); ToggleStartWithWindowsCommand = new RelayCommand(_ToggleStartWithWindows); m_recursiveChanged = false; m_cacheSizeLabel = ""; _LoadCacheSize(); }