/// <summary> /// Button click event that when clicked updates the walking date. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void BtnWalking_Click(object sender, EventArgs e) { if (CbUitlaatEmployees.Text != "") { caretakingLogic.SetWalkingDate(animalLogic.GetAnimalFromList(Animal.Species.Dog, LbDogs.SelectedIndex), employeeLogic.GetEmployeeByName(CbUitlaatEmployees.Text), DtpUitlaatDate.Value); LbDogs_SelectedIndexChanged(null, null); TodoToday(); } else { MessageBox.Show("Er is geen werknemer gekozen.", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error); } }