Example #1
0
        public override void AwakeFromNib()
        {
            Platform = Runtime.Initialize (new MacPlatform ());
            // Do this before we start listening for notifications.
            Platform.Preferences.StartAtLogin = AppStartAtLogin;
            Platform.Preferences.Changed += PreferencesChanged;

            Controller = new AwarenessController (Platform);
            Controller.FirstRun += FirstRun;
            Controller.BowlPlayer.WillPlay += BowlPlayerWillPlay;
            Controller.BowlPlayer.StartedPlaying += BowlPlayerStartedPlaying;
            Controller.BreakTimer.BreakChecked += HandleBreakChecked;

            iTunes = new iTunes (Platform);

            if (Platform.MacPreferences.ShowInMenuBar)
                CreateAndDisplayStatusItem ();

            base.AwakeFromNib ();
        }
Example #2
0
        public override void AwakeFromNib()
        {
            Platform = Runtime.Initialize(new MacPlatform());
            // Do this before we start listening for notifications.
            Platform.Preferences.StartAtLogin = AppStartAtLogin;
            Platform.Preferences.Changed     += PreferencesChanged;

            Controller                            = new AwarenessController(Platform);
            Controller.FirstRun                  += FirstRun;
            Controller.BowlPlayer.WillPlay       += BowlPlayerWillPlay;
            Controller.BowlPlayer.StartedPlaying += BowlPlayerStartedPlaying;
            Controller.BreakTimer.BreakChecked   += HandleBreakChecked;

            iTunes = new iTunes(Platform);

            if (Platform.MacPreferences.ShowInMenuBar)
            {
                CreateAndDisplayStatusItem();
            }

            base.AwakeFromNib();
        }