public Type ChooseClass() { var core = new ChooseClass(GetAssemblies()); var window = new ChooseClassDialog(core); if (window.ShowDialog().Value) { return core.CurrentClass; } return null; }
public Type ChooseClass() { var core = new ChooseClass(GetAssemblies()); var window = new ChooseClassDialog(core); if (window.ShowDialog().Value) { return(core.CurrentClass); } return(null); }
public ChooseClassDialog(ChooseClass core) { DataContext = core; InitializeComponent(); uxFilter.Focus(); uxList.MouseDoubleClick += uxList_MouseDoubleClick; uxOk.Click += delegate { Ok(); }; AddHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler( (sender, e) => uxList.SetValue(IsSelectionActivePropertyKey, true) ), true); }
public ChooseClassDialog(ChooseClass core) { DataContext = core; SpecialInitializeComponent(); uxFilter.Focus(); uxList.MouseDoubleClick += uxList_MouseDoubleClick; uxOk.Click += delegate { Ok(); }; AddHandler(Keyboard.GotKeyboardFocusEvent, new KeyboardFocusChangedEventHandler( (sender, e) => uxList.SetValue(IsSelectionActivePropertyKey, true) ), true); }