private void listBar1_GroupClicked(object sender, GroupClickedEventArgs e) { if (e.MouseButton == MouseButtons.Right) { contextGroup = e.Group; groupContextMenu.Show(listBar1, e.Location); } }
/// <summary> /// EventHandler for user interaction with the BreadcrumbNavigator. /// </summary> /// <param name="sender">The BreadcrumbNavigator.</param> /// <param name="e">EventArgs provided the clicked group.</param> private void Breadcrumb_GroupClicked(object sender, GroupClickedEventArgs e) { IKeePassGroup clickedGroup = e.Group; DebugHelper.Assert(clickedGroup != null); DebugHelper.Trace($"Updating View to breadcrumb: {e.Group.Title.ClearValue}"); ViewModel.NavigationViewModel.SetGroup(clickedGroup); }
/// <summary> /// EventHandler for user interaction with the BreadcrumbNavigator. /// </summary> /// <param name="sender">The BreadcrumbNavigator.</param> /// <param name="e">EventArgs provided the clicked group.</param> private void Breadcrumb_GroupClicked(object sender, GroupClickedEventArgs e) { IKeePassGroup clickedGroup = e.Group; DebugHelper.Assert(clickedGroup != null); IDatabaseChildView childView = this.databaseContentFrame.Content as IDatabaseChildView; DebugHelper.Assert(childView != null); childView.RequestBreadcrumbNavigation( ViewModel.GetDatabaseViewModel(), ViewModel.NavigationViewModel, clickedGroup ); }