/// <summary> /// Activates a croissant that is deactivated. /// </summary> private void ActivateCroissant() { if (SelectedLine != null && SelectedLine.SelectedCroissant != null) { // A deactivated croissant doesn't have a date of deactivation, // so we simply ask the line to reactivate one of its croissant. SelectedLine.ReactivatedCroissant(); } else { InformationMessage = "Impossible de gérer une pénalité inexistante."; } // Check the commands: they state can change due to the activated croissant. CheckCommands(); }