/// <summary> /// Sets the current right clicked CheckBox. /// </summary> public void Directory_RightMouseDown(SenpaiDirectory dir) { _currentRightClickedDirectory = dir; NotifyOfPropertyChange(() => FavoriteContextMenuItemText); NotifyOfPropertyChange(() => FavoriteContextMenuItemImage); NotifyOfPropertyChange(() => IgnoreContextMenuItemText); NotifyOfPropertyChange(() => IgnoreContextMenuItemImage); }
/// <summary> /// Adds a new CheckBox with the given <paramref name="folder"/> to the list. /// </summary> /// <param name="folder">Folder to add.</param> private void AddCheckBox(string folder) { SenpaiDirectory dir = new SenpaiDirectory(folder, this); if (IgnoredPaths.Contains(folder)) { dir.Opacity = 0.5; dir.Visibility = Visibility.Collapsed; } if (FavoritePaths.Contains(folder)) { dir.BackgroundColor = new SolidColorBrush(Colors.Yellow); } _directoryList.Add(dir); NotifyOfPropertyChange(() => CanInvertCheckBoxes); }
/// <summary> /// Adds a new CheckBox with the given <paramref name="folder"/> to the list. /// </summary> /// <param name="folder">Folder to add.</param> private void AddCheckBox(string folder) { SenpaiDirectory dir = new SenpaiDirectory(folder, this); if (IgnoredPaths.Contains(folder)) { dir.Opacity = 0.5; dir.Visibility = Visibility.Collapsed; } if (FavoritePaths.Contains(folder)) dir.BackgroundColor = new SolidColorBrush(Colors.Yellow); _directoryList.Add(dir); NotifyOfPropertyChange(() => CanInvertCheckBoxes); }
/// <summary> /// Sets the current right clicked CheckBox. /// </summary> public void Directory_RightMouseDown(SenpaiDirectory dir) { _currentRightClickedDirectory = dir; NotifyOfPropertyChange(() => FavoriteContextMenuItemText); NotifyOfPropertyChange(() => FavoriteContextMenuItemImage); NotifyOfPropertyChange(() => IgnoreContextMenuItemText); NotifyOfPropertyChange(() => IgnoreContextMenuItemImage); }