/// <summary> /// Restore Pet /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void bbiRestore_ItemClick(object sender, ItemClickEventArgs e) { if (petID != null) //check user is select pet { //restore pet PetModel pm = new PetModel(); pm.RestorePet(petID); //send notify message for user XtraMessageBox.Show("Restore successful!!!", "Pet Shop", MessageBoxButtons.OK, MessageBoxIcon.Information); } else //if user is not selete pet then send error message { XtraMessageBox.Show("Please select a Pet item to restore!!!", "Pet Shop", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }