public TranslatorBootstrapper(MainWindow mainWindow, GrowlNotifications growlNotifications, IApplicationConfiguration applicationConfiguration, ICacheManager cacheManager, IClipboardManager clipboardManager) { _mainWindow = mainWindow; _growlNotifications = growlNotifications; _applicationConfiguration = applicationConfiguration; _cacheManager = cacheManager; _clipboardManager = clipboardManager; }
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(); }
static WindowManager() { ChatWindows = new ConcurrentBag <ChatWindow>(); GrowlWindow = new GrowlNotifications(); }
static WindowManager() { GrowlWindow = new GrowlNotifications(); }
static WindowManager() { ChatWindows = new ConcurrentBag<ChatWindow>(); GrowlWindow = new GrowlNotifications(); }
public GrowlNotifier(GrowlNotifications growlNotifications) { this.growlNotifications = growlNotifications; }