Esempio n. 1
0
        private void AddStatAction()
        {
            if (_viewmodel.SelectedItem == null)
            {
                return;
            }
            var presenter = new StatCardPresenter(_view, _statRepo);

            presenter.SaveComplete += OnStatAdded;
            presenter.Show(_viewmodel.SelectedItem.Id);
        }
Esempio n. 2
0
        private void EditStatAction()
        {
            if (_viewmodel.SelectedStat == null)
            {
                return;
            }

            var presenter = new StatCardPresenter(_view, _statRepo);

            presenter.SaveComplete += OnStatEdited;
            presenter.Show(_viewmodel.SelectedStat);
        }