private void ShowEditButtons() { //hides edit button EventEditMatchResult.Hide(); //shows save and edit buttons & label for changes made EventSave.Show(); EventCancelEdit.Show(); LabelChangesMade.Show(); }
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 }