Exemplo n.º 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();
     }
 }
Exemplo n.º 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();
     }
 }
Exemplo n.º 5
0
        public static void ScrollChildToBottom(this DependencyObject e)
        {
            ScrollViewer s = CMUIUtilities.FindVisualChild <ScrollViewer>(e);

            if (s != null)
            {
                s.ScrollToBottom();
            }
        }
Exemplo n.º 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();
         }
     }
 }