Ejemplo n.º 1
0
 public TranslatorBootstrapper(MainWindow mainWindow,
                               GrowlNotifications growlNotifications,
                               IApplicationConfiguration applicationConfiguration,
                               ICacheManager cacheManager,
                               IClipboardManager clipboardManager)
 {
     _mainWindow               = mainWindow;
     _growlNotifications       = growlNotifications;
     _applicationConfiguration = applicationConfiguration;
     _cacheManager             = cacheManager;
     _clipboardManager         = clipboardManager;
 }
Ejemplo n.º 2
0
        static WindowManager()
        {
            ChatWindows = new ConcurrentBag<ChatWindow>();
            GrowlWindow = new GrowlNotifications();
            _uiLagWindowThread = new Thread(() =>
            {
                UiLagWindow = new UiLagWindow();
                _uiLagWindowDispatcher = Dispatcher.CurrentDispatcher;
                System.Windows.Threading.Dispatcher.Run();
            });

            _uiLagWindowThread.Name = "Lag Window UI Thread";
            _uiLagWindowThread.SetApartmentState(ApartmentState.STA);
            _uiLagWindowThread.Start();
        }
 public TranslatorBootstrapper(GrowlNotifications growlNotifications,
                               IClipboardManager clipboardManager,
                               IApplicationConfiguration applicationConfiguration,
                               IGoogleAnalyticsTracker googleAnalyticsTracker,
                               IServiceProvider serviceProvider,
                               CookieContainer cookieContainer)
 {
     this.growlNotifications       = growlNotifications;
     this.clipboardManager         = clipboardManager;
     this.applicationConfiguration = applicationConfiguration;
     this.googleAnalyticsTracker   = googleAnalyticsTracker;
     this.serviceProvider          = serviceProvider;
     this.cookieContainer          = cookieContainer;
     this.globalMouseHook          = Hook.GlobalEvents();
     this.tipsyMouse = new TipsyMouse(() =>
     {
         this.serviceProvider
         .GetRequiredService <MainWindow>()
         .Dispatcher
         .InvokeAsync(SendCopyCommand, DispatcherPriority.Input, this.cancellationTokenSource.Token);
         this.tipsyMouse.Release();
     });
     ConfigureNotificationMeasurements();
 }
Ejemplo n.º 4
0
 static WindowManager()
 {
     ChatWindows = new ConcurrentBag <ChatWindow>();
     GrowlWindow = new GrowlNotifications();
 }
Ejemplo n.º 5
0
 static WindowManager()
 {
     GrowlWindow = new GrowlNotifications();
 }
Ejemplo n.º 6
0
 static WindowManager()
 {
     ChatWindows = new ConcurrentBag<ChatWindow>();
     GrowlWindow = new GrowlNotifications();
 }
Ejemplo n.º 7
0
 public GrowlNotifier(GrowlNotifications growlNotifications)
 {
     this.growlNotifications = growlNotifications;
 }