예제 #1
0
        private void LoadDataForEdit(string Id)
        {
            UserDBHelper db    = new UserDBHelper(this);
            ICursor      cData = db.getUserById(int.Parse(Id));

            if (cData.MoveToFirst())
            {
                txtFirstname.Text = cData.GetString(cData.GetColumnIndex("Firstname"));
                txtLastname.Text  = cData.GetString(cData.GetColumnIndex("Lastname"));
                txtAddress.Text   = cData.GetString(cData.GetColumnIndex("Address"));
                txtEmail.Text     = cData.GetString(cData.GetColumnIndex("Email"));
            }
        }