コード例 #1
0
        public ExercisePopupViewModel(ExersicePopup exersicePopup, NewTrainingViewModel newTrainingViewModel)
        {
            _ep = exersicePopup;
            _newTrainingViewModel = newTrainingViewModel;
            FillCollection();

            CloseButtonClick = new Command(CloseButtonClickImpl);
        }
コード例 #2
0
        public TimerPopupViewModel(TimerPopup timerPopup, NewTrainingViewModel newTrainingViewModel, int sec)
        {
            _newTrainingViewModel = newTrainingViewModel;
            _tp      = timerPopup;
            _seconds = sec;

            CloseClickCommand = new Command(CloseClickCommandImpl);
            TextToDisplay     = sec.ToString();
            ButtonText        = "Zacznij";
        }