示例#1
0
 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;
 }
示例#2
0
 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);
     }
 }
示例#3
0
 private void TurnOnAndOffTheButton(GroupBox panelName, Button turnOnOff)
 {
     ButtonMy.TurnOffAllTheButtons(panelName);
     ButtonMy.TurnOnTheButton(turnOnOff);
 }