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}이 삭제되었습니다."); }
void timer_Tick(object sender, EventArgs e) { AccountList accountList = AccountList.GetAccountList(); toolStripStatusLabel2.Text = onTick + accountList.Count(); }