private void HideEditButtons()
 {
     EventEdit.Show();   //shows edit button
     //hides the cancel edit & save button and changes made label
     EventCancelEdit.Hide();
     EventSave.Hide();
     LabelChangesMade.Hide();
 }
 private void HideEditButtons()
 {
     EventEdit.Show();   //shows the edit button
     //Hides the changes made label and save & cancel edit buttons
     EventSave.Hide();
     EventCancelEdit.Hide();
     LabelChangesMade.Hide();
 }
Beispiel #3
0
 private void HideEditButtons()
 {   //shows edit button
     EventEditMatchResult.Show();
     //hides save and edit button & label for changes made
     EventSave.Hide();
     EventCancelEdit.Hide();
     LabelChangesMade.Hide();
 }
Beispiel #4
0
 private void EditOff()
 {   //changes the enabled state of the access level and team drop down boxes so they cant be edited
     InputAccessLevel.Enabled = false;
     InputTeam.Enabled        = false;
     EventEdit.Show();     //shows the edit button
     //hides the cancel edit & save button and the changes made label
     EventCancelEdit.Hide();
     EventSave.Hide();
     LabelChangesMade.Hide();
     ReloadData();           //calls on function to load the original data back into the form
     Changes.ResetChanges(); //calls on function to reset variables
 }
Beispiel #5
0
 private void HideButton()
 {
     if (Database.UserData.accessLevel == "Player") //checks if users access level is 'player'
     {
         EventEditMatchResult.Hide();               //hides edit button
     }
     else
     {
         this.Height += 36;
     }
     EventSave.Hide();        //hides save button
     EventCancelEdit.Hide();  //hides cancel edit button
     LabelChangesMade.Hide(); //hides changes made label
 }