Пример #1
0
        public Login(DTE2 dte)
        {
            Assembly.Load("Xceed.Wpf.Toolkit");

            InitializeComponent();

            var main = dte.GetMainWindow();

            Owner = main;
            //Loaded += delegate  { this.CenterWindow(main); };

            assemblyRegistration = new AssemblyRegistration();

            RegisterEvents();

            settingsArray = Configuration.LoadConfigs();
        }
Пример #2
0
        public Login(DTE2 dte)
        {
            Assembly.Load("Xceed.Wpf.Toolkit");

            InitializeComponent();

            var main = dte.GetMainWindow();

            Owner = main;

            settings = Configuration.LoadSettings();

            connectionManager = CacheHelpers.GetFromMemCacheAdd(Constants.ConnCacheMemKey,
                                                                () => new ConnectionManager(settings.Threads));

            ////EventManager.RegisterClassHandler(typeof(TextBox), MouseDoubleClickEvent, new RoutedEventHandler(SelectAddress));
            ////EventManager.RegisterClassHandler(typeof(TextBox), GotKeyboardFocusEvent, new RoutedEventHandler(SelectAddress));
            ////EventManager.RegisterClassHandler(typeof(TextBox), PreviewMouseLeftButtonDownEvent,
            ////	new MouseButtonEventHandler(SelectivelyIgnoreMouseButton));
        }
Пример #3
0
        public Login(DTE2 dte)
        {
            Assembly.Load("Xceed.Wpf.Toolkit");

            InitializeComponent();

            var main = dte.GetMainWindow();

            Owner = main;

            settingsArray = Configuration.LoadConfigs();

            EventManager.RegisterClassHandler(typeof(TextBox), MouseDoubleClickEvent, new RoutedEventHandler(SelectAddress));
            EventManager.RegisterClassHandler(typeof(TextBox), GotKeyboardFocusEvent, new RoutedEventHandler(SelectAddress));
            EventManager.RegisterClassHandler(typeof(TextBox), PreviewMouseLeftButtonDownEvent,
                                              new MouseButtonEventHandler(SelectivelyIgnoreMouseButton));
            EventManager.RegisterClassHandler(typeof(PasswordBox), MouseDoubleClickEvent, new RoutedEventHandler(SelectAddress));
            EventManager.RegisterClassHandler(typeof(PasswordBox), GotKeyboardFocusEvent, new RoutedEventHandler(SelectAddress));
            EventManager.RegisterClassHandler(typeof(PasswordBox), PreviewMouseLeftButtonDownEvent,
                                              new MouseButtonEventHandler(SelectivelyIgnoreMouseButton));
        }