Example #1
0
 /// <summary>
 /// Sets the current right clicked CheckBox.
 /// </summary>
 public void Directory_RightMouseDown(SenpaiDirectory dir)
 {
     _currentRightClickedDirectory = dir;
     NotifyOfPropertyChange(() => FavoriteContextMenuItemText);
     NotifyOfPropertyChange(() => FavoriteContextMenuItemImage);
     NotifyOfPropertyChange(() => IgnoreContextMenuItemText);
     NotifyOfPropertyChange(() => IgnoreContextMenuItemImage);
 }
Example #2
0
        /// <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);
        }
Example #3
0
		/// <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);
		}
Example #4
0
		/// <summary>
		/// Sets the current right clicked CheckBox.
		/// </summary>
		public void Directory_RightMouseDown(SenpaiDirectory dir)
		{
			_currentRightClickedDirectory = dir;
			NotifyOfPropertyChange(() => FavoriteContextMenuItemText);
			NotifyOfPropertyChange(() => FavoriteContextMenuItemImage);
			NotifyOfPropertyChange(() => IgnoreContextMenuItemText);
			NotifyOfPropertyChange(() => IgnoreContextMenuItemImage);
		}