Beispiel #1
0
        private void ExecuteIncomeUIEventUIEventHandler(object obj)
        {
            var tuple = (Tuple <object, object>)obj;

            if (!(tuple.Item2 is IncomeUIEventArgs e))
            {
                return;
            }

            e.Handled = true;

            if (e.Action == "Changed")
            {
                ChangeStewardInIncomeCollection(e.StewardModel.Id, e.StewardModel.PersonName, e.FiefId, e.Income);
                _incomeService.ChangeSteward(e.StewardModel.Id, e.FiefId, e.Income);
                DataModel.IncomesCollection.Clear();
                DataModel.IncomesCollection = _incomeService.GetAllIncomes(Index);
            }
        }