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(); } }
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(); } }
public static void ScrollChildToBottom(this DependencyObject e) { ScrollViewer s = CMUIUtilities.FindVisualChild <ScrollViewer>(e); if (s != null) { s.ScrollToBottom(); } }
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(); } } }