static void Main()
 {
     online = new MainClient();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new MainWindow());
 }
 public ChatWindow(ChatClient c, MainClient o)
 {
     InitializeComponent();
     this.chat = c;
     this.online = o;
     chat.DataReceived += Chat_DataReceived;
 }
        private void MainWindow_Load(object sender, EventArgs e)
        {
            online = new MainClient();

            cmbSprite.Text = "Please load a resource to select sprite.";
            initcmb = true;

            // OK to use OpenGL now
            formLoaded = true;

            currentRoom.Objects = new Dictionary<Vector3, GameObject>();
        }