예제 #1
0
        public App() : base()
        {
            this.ShutdownMode = ShutdownMode.OnMainWindowClose;

            LOGGER.Info("Initializing exclusions...");
            initExclusions();

            LOGGER.Info("Init notification window...");
            notifierWindow = new NotificationWindow
            {
                WindowState = WindowState.Normal
            };
            MainWindow     = notifierWindow;
            activityWindow = ActivityWindow.Init(notifierWindow);
            if (Settings.Default.ActivityWindow_Shown)
            {
                activityWindow.Show();
            }

            asyncTaskRunner = new AsyncTaskRunner(this);
            asyncTaskRunner.StartTasks();
        }
예제 #2
0
파일: App.cs 프로젝트: harrwiss/WFN
        public App() : base()
        {
            this.ShutdownMode = ShutdownMode.OnMainWindowClose;
            CommonHelper.OverrideSettingsFile("WFN.config");

            LogHelper.Debug("Initializing exclusions...");
            initExclusions();

            LogHelper.Debug("Init notification window...");
            notifierWindow = new NotificationWindow
            {
                WindowState = WindowState.Normal
            };
            MainWindow     = notifierWindow;
            activityWindow = ActivityWindow.Init(notifierWindow);
            if (Settings.Default.ActivityWindow_Shown)
            {
                activityWindow.Show();
            }

            asyncTaskRunner = new AsyncTaskRunner(this);
            asyncTaskRunner.StartTasks();
        }