Example #1
0
        void UpdateClickItem(Account account)
        {
            Tuple <Account_Info, Account_Type> info = Account_InfoController.getController().findOneWithType(account.Username);

            if (info != null)
            {
                lbName.Text    = info.Item1.First_Name + " " + info.Item1.Last_Name;
                lbBirthay.Text = HelperUtils.ConvertDateTime(info.Item1.Birthday.ToString());
                lbPhone.Text   = info.Item1.Phone;
                lbType.Text    = info.Item2.Name;
                rtbAdress.Text = info.Item1.Address;
                rtbNote.Text   = info.Item1.Note;
            }
            else
            {
                lbName.Text    = "";
                lbBirthay.Text = "";
                lbPhone.Text   = "";
                lbType.Text    = "";
                rtbAdress.Text = "";
                rtbNote.Text   = "";
            }
        }