/// <summary> /// Initializes the form and the server object. /// </summary> /// <param name="server">Object which stores admin data.</param> /// <remarks>Server object is necessary to close server properly.</remarks> public FormServer(Server server) { InitializeComponent(); InitializeDogs(); this.server = server; ClientServerConnectionsHub.FormServer = this; //Pass formserver to access admin console on server form (update chat log). administrator = new Parlor(server.GetAdminName, ClientServerConnectionsHub.GetAdminAccountBalance(server.GetAdminName)); }