Exemple #1
0
        private void DeleteAccountInfoInStorage(object selectedList)
        {
            if (selectedList is null)
            {
                return;
            }

            var selectedAccount = selectedList as Account;

            ServiceLogic.Delete(selectedAccount.AccountId);

            if (AccountList.Count() > 0)
            {
                AccountList.Remove(selectedAccount);
            }

            MessageBox.Show($"{selectedAccount.CompanyName}이 삭제되었습니다.");
        }