Пример #1
0
        private void OnHumanPlayerChanged()
        {
            if (_humanPlayer == _newHumanAccount)
            {
                NewAccount = new HumanAccountViewModel(new HumanAccount {
                    CanBeDeleted = true
                });
                NewAccountCreating?.Invoke();
            }

            HumanPlayerChanged?.Invoke();
        }
Пример #2
0
        private void EditAccount_Executed(object arg)
        {
            var humanAccount = arg as HumanAccount;

            NewAccount = new HumanAccountViewModel(new HumanAccount(humanAccount)
            {
                CanBeDeleted = true
            })
            {
                IsEdit = true, CurrentAccount = humanAccount
            };
            AccountEditing?.Invoke();
        }