コード例 #1
0
ファイル: MusicPlayer.cs プロジェクト: enemymaker/Tomato
        public MusicPlayer(IPomodoroEngine engine, MusicPlayerPluginSettings settings, IMusicPlayer musicPlayer, PomodoroEngineSettings engineSettings)
        {
            _engine         = engine;
            _settings       = settings;
            _musicPlayer    = musicPlayer;
            _engineSettings = engineSettings;

            _engine.PropertyChanged += _engine_PropertyChanged;
        }
コード例 #2
0
        public MusicPlayerPluginSettingWindow(MusicPlayerPluginSettings settings)
        {
            settings.DeferChanges();

            InitializeComponent();

            DataContext = settings;

            BrowseBreakSong.Command = new BrowseSong(BreakSong);
            BrowseWorkSong.Command  = new BrowseSong(WorkSong);
        }