Beispiel #1
0
 private void SelectFeatBox_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (CMUIUtilities.ClickedListBoxItem((ListBox)sender, e) != null)
     {
         AddSelectedFeats();
     }
 }
 private void ConditionsListBox_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     if (CMUIUtilities.ClickedListBoxItem((ListBox)sender, e) != null)
     {
         AddCurrentCondition();
     }
 }
Beispiel #3
0
        private void MainRectangle_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            FrameworkElement fe = (FrameworkElement)sender;
            Window           w  = CMUIUtilities.FindVisualParent <Window>(fe);

            w.DragMove();
        }
 private void AvailableSkillsList_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     if (CMUIUtilities.ClickedListBoxItem((ListBox)sender, e) != null)
     {
         AddSelectedSkill();
     }
 }
Beispiel #5
0
        public static void ScrollChildToBottom(this DependencyObject e)
        {
            ScrollViewer s = CMUIUtilities.FindVisualChild <ScrollViewer>(e);

            if (s != null)
            {
                s.ScrollToBottom();
            }
        }
Beispiel #6
0
 private void WeaponListBox_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     if (weaponsView.CurrentItem != null)
     {
         if (CMUIUtilities.ClickedListBoxItem((ListBox)sender, e) != null)
         {
             DialogResult = true;
             Close();
         }
     }
 }