public void Connect(ServerInfo server, INetworkClient client, bool isLocalPlayer) { if (m_Connection != null) { Disconnect(true); } m_Connection = new ControlConnection(server, client); m_Connection.Connect(); ServerName = server.Name; m_IsLocalPlayer = isLocalPlayer; if (m_Connection != null && !String.IsNullOrEmpty(FilePath)) { String path = FilePath; if (path.StartsWith(REMOTE_FILE_TAG)) { path = path.Substring(REMOTE_FILE_TAG.Length); } m_Connection.SendProjectOpenRequest(path, !m_IsLocalPlayer); } }