private void listBar1_GroupClicked(object sender, GroupClickedEventArgs e)
 {
     if (e.MouseButton == MouseButtons.Right)
     {
         contextGroup = e.Group;
         groupContextMenu.Show(listBar1, e.Location);
     }
 }
예제 #2
0
        /// <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);
        }
예제 #3
0
        /// <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
                );
        }