Update README.md
0b851f8d
Dimitar Tsenev
authored and
GitHub
committed
1 changed file
README.md
/README.md-29+14
/README.md
Add comment 1 using System;
Add comment 2 Minus  using System.Collections.Generic;
Add comment 3 Minus  using System.Linq;
Add comment 4 Minus  using System.Text;
Add comment 5 2 using System.Windows;
Add comment 6 3 using System.Windows.Controls;
Add comment 7 Minus  using System.Windows.Data;
Add comment 8 Minus  using System.Windows.Documents;
Add comment 9 4 using System.Windows.Input;
Add comment 10 Minus  using System.Windows.Media;
Add comment 11 Minus  using System.Windows.Media.Imaging;
Add comment 12 Minus  using System.Windows.Navigation;
Add comment 13 Minus  using System.Windows.Shapes;
Add comment 14 5
Add comment 15 Minus  namespace BetterExplorerControls
Add comment 16 Minus  {
Add comment 6 Plus  namespace BetterExplorerControls {
Add comment 7 Plus  
Add comment 17 8 /// <summary>
Add comment 18 9 /// Interaction logic for BreadcrumbBarHistoryItem.xaml
Add comment 19 10 /// </summary>
Add comment 20 Minus   public partial class BreadcrumbBarHistoryItem : MenuItem
Add comment 21 Minus   {
Add comment 22 Minus   public BreadcrumbBarHistoryItem()
Add comment 23 Minus   {
Add comment 11 Plus   public partial class BreadcrumbBarHistoryItem : MenuItem {
Add comment 12 Plus   /// <summary>
Add comment 13 Plus   /// An event that clients can use to be notified whenever the
Add comment 14 Plus   /// elements of the list change:
Add comment 15 Plus   /// </summary>
Add comment 16 Plus   public event EventHandler DeleteRequested;
Add comment 17 Plus  
Add comment 18 Plus   public BreadcrumbBarHistoryItem() {
Add comment 24 19 InitializeComponent();
Add comment 25 20 }
Add comment 26 21
Add comment 27 Minus   // An event that clients can use to be notified whenever the
Add comment 28 Minus   // elements of the list change:
Add comment 29 Minus   public event EventHandler DeleteRequested;
Add comment 30 Minus   //public event EventHandler MouseDoubleClick;
Add comment 31 Minus  
Add comment 32 Minus   // Invoke the Changed event; called whenever list changes:
Add comment 33 Minus   protected virtual void OnDeleteRequested(EventArgs e)
Add comment 34 Minus   {
Add comment 22 Plus   protected virtual void OnDeleteRequested(EventArgs e) {
Add comment 35 23 if (DeleteRequested != null)
Add comment 36 24 DeleteRequested(this, e);
Add comment 37 25 }
Add comment 38 26
Add comment 39 Minus   private void MenuItem_Click(object sender, RoutedEventArgs e)
Add comment 40 Minus   {
Add comment 27 Plus   private void MenuItem_Click(object sender, RoutedEventArgs e) {
Add comment 41 28 OnDeleteRequested(EventArgs.Empty);
Add comment 42 29 }
Add comment 43 30
Add comment 44 Minus   private void MenuItem_MouseUp(object sender, MouseButtonEventArgs e)
Add comment 45 Minus   {
Add comment 46 Minus   if (e.ChangedButton == MouseButton.Right)
Add comment 47 Minus   {
Add comment 31 Plus   private void MenuItem_MouseUp(object sender, MouseButtonEventArgs e) {
Add comment 32 Plus   if (e.ChangedButton == MouseButton.Right) {
Add comment 48 33 this.ContextMenu.IsOpen = true;
Add comment 49 34 ((ContextMenu)this.Parent).IsOpen = true;
Add comment 50 35 this.ContextMenu.IsOpen = true;