private void getInfo() { userModel user = new userModel(); user.IdUser = ConfigurationManager.AppSettings["userid"]; result = userDAO.getUsername(user); if (result == 1) { textBox_Copy1.Text = user.Username; userDAO.getPet(user); textBox_Copy2.Text = user.Pet; lbl_keanu.Content = user.Username; } else { MessageBox.Show("Failed to load pet!"); } }