/// <summary> /// Creates a new listing for the tourney signup page /// </summary> /// <param name="tourney">The tourney to associate with this listing</param> public SignupTourneyListing(Tourney tourney) { InitializeComponent(); //Link the tourney given and update the elements this.tourney = tourney; UpdateListing(); }
/// <summary> /// Create a new List item for the Tounrey Management page /// </summary> /// <param name="tourney">The tourney to associate with this list item</param> public ManageTourneyListing(Tourney tourney) { InitializeComponent(); //Link the tourney to this item and update the elements this.tourney = tourney; UpdateListing(); }
/// <summary> /// Create a new Manage Match Page /// </summary> /// <param name="tourney">The tourney for which to see all of the matches</param> public ManageMatchPage(Tourney tourney) { InitializeComponent(); //Reference the tourney and update the page elements this.tourney = tourney; pageFunctionPointer += new UpdateList(ResizeAndUpdateList); //Link a delegate in list items UpdateListing(); }
/// <summary> /// Set the shown page on the main window /// </summary> /// <param name="tourney">The tourney for use in a Manage Match Screen</param> static public void SetPage(Tourney tourney) { //Get the correct usercontrol UserControl control = new ManageMatchPage(tourney); //Set page to panel Program.Window.pnlContent.Controls.Clear(); Program.Window.pnlContent.Controls.Add(control); }
/// <summary> /// Create a new tourey listing for the statistics page /// </summary> /// <param name="tourney">The tourney to associate with this listing</param> /// <param name="user">The user to associate with this listing</param> public StatisticsTourneyListing(Tourney tourney, Player player) { InitializeComponent(); //Link the player and tourney to this item and update item elements this.player = player; this.tourney = tourney; UpdateListing(); }