public Type ChooseClass()
		{
			var core = new ChooseClass(GetAssemblies());
			var window = new ChooseClassDialog(core);
			
			if (window.ShowDialog().Value) {
				return core.CurrentClass;
			}
			return null;
		}
示例#2
0
        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);
		}
示例#4
0
        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);
        }