Bricklayer.Client.Interface.LobbyWindow.LoadRooms C# (CSharp) Method

LoadRooms() public method

Loads rooms from the recieved lobby message
public LoadRooms ( ) : void
return void
        public void LoadRooms()
        {
            //Set text with what has been recieved
            grpServer.Text = "Server [" + Game.NetManager.Client.ServerConnection.RemoteEndPoint.ToString() + "]";
            LobbyScreen screen = Interface.MainWindow.ScreenManager.Current as LobbyScreen;
            lblName.Text = screen.Name;
            lblDescription.Text = screen.Description;
            lblDescription.Height = (int)Game.DefaultFont.MeasureRichString(lblDescription.Text, Manager).Y;

            lblInfo.Top = 16 + lblDescription.Bottom;
            lblInfo.Text = ReplaceVariables(screen.Intro);
            lblInfo.Height = (int)Game.DefaultFont.MeasureRichString(lblInfo.Text, Manager).Y;

            RefreshRooms();
        }