public Type ChooseClass()
		{
			var core = new ChooseClass(GetAssemblies());
			var window = new ChooseClassDialog(core);
			
			if (window.ShowDialog().Value) {
				return core.CurrentClass;
			}
			return null;
		}
Ejemplo n.º 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);
		}
Ejemplo n.º 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);
        }