コード例 #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}이 삭제되었습니다.");
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: Maxicids/OOP2
        void timer_Tick(object sender, EventArgs e)
        {
            AccountList accountList = AccountList.GetAccountList();

            toolStripStatusLabel2.Text = onTick + accountList.Count();
        }