コード例 #1
0
ファイル: AppDelegate.cs プロジェクト: kelegorm/awareness
        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 ();
        }
コード例 #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();
        }