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(); }
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)); }
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)); }