private void Cancel() { btnCancel.Visible = false; btnAdd.Enabled = true; btnDelete.Enabled = true; btnModify.Enabled = true; lblAdd.Visible = false; txtAddEmail.Visible = false; txtAddEmail.Text = ""; ButtonMy.TurnOffAllTheButtons(panelGroup); btnDeleteAll.Visible = false; }
private void Form3_Load(object sender, EventArgs e) { if (clearForm3 == add) { listOfCuisinesForm3 = ""; RatingForm3 = ""; executionTimeForm3 = ""; difficultLevelForm3 = ""; } else { DisplayHighlightedButton(RatingForm3, gbRating); DisplayHighlightedButton(difficultLevelForm3, gbLevel); DisplayHighlightedButton(executionTimeForm3, gbTime); DisplayPhoto(); ButtonMy.SelectTypeOfCuisine(listOfCuisinesForm3, gbKitchen); } }
private void TurnOnAndOffTheButton(GroupBox panelName, Button turnOnOff) { ButtonMy.TurnOffAllTheButtons(panelName); ButtonMy.TurnOnTheButton(turnOnOff); }