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();
 }
 private void HideEditButtons()
 {
     EventEdit.Show();   //shows edit button
     //hides the cancel edit & save button and changes made label
     EventCancelEdit.Hide();
     EventSave.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();
 }
 private void ShowEditButtons()
 {
     EventEdit.Hide();   //hides the edit button
     //Shows the changes made label and save & cancel edit buttons
     EventCancelEdit.Show();
     EventSave.Show();
     LabelChangesMade.Show();
     LabelChangesMade.Text = "0 changes\nmade.";
 }
Example #5
0
 private void EditOn()
 {   //changes the enabled state of the access level and team drop down boxes so they can be edited
     InputAccessLevel.Enabled = true;
     InputTeam.Enabled        = true;
     EventEdit.Hide();   //hides the edit button
     //shows the changes made label and the save & cancel edit button
     EventCancelEdit.Show();
     EventSave.Show();
     LabelChangesMade.Show();
     LabelChangesMade.Text = "0 changes\nmade."; //sets the text in the changes made label
 }
Example #6
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 #7
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
 }