Esempio n. 1
0
        private void SaveAccountInfoInStorage()
        {
            var companyNumber = SelectedCompanyHeadNumber;
            var contactNumber = GetPhoneHeadNumber(SelectedContactHeadNumber);

            if (AccountInformation.AccountId != null)
            {
                ServiceLogic.Update(SelectedAccountInfo);
                // 여기서 업데이트를 할 것입니다.....
                // 아이디 값이 없으면
                //AccountList.Add(ServiceLogic.Update(AccountInformation));
                return;
            }

            if (IsCompatibility(companyNumber, contactNumber) != true)
            {
                MessageBox.Show("값을 넣어주세요");
                return;
            }


            ShowAddedAccount(ServiceLogic.Insert(AccountInformation));

            MessageBox.Show("성공");
        }