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();
 }
Example #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();
 }
Example #4
0
 private void EditOff()
 {
     EditingEnableChange(false); //calls on function to change the editability of the form
     HideEditButtons();          //calls on function to hide buttons for editing
     LoadData();                 //calls on function to load data into the form
     LabelChangesMade.Text = "0 changes\nmade.";
     LabelChangesMade.Hide();
 }
Example #5
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
 }
Example #6
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
 }