//Create the connection protected void Connect(TEmotivConnectionMode iMode, string iServer) { switch(iMode) { case TEmotivConnectionMode.EmoEngine: mEngine.Connect(); break; case TEmotivConnectionMode.EmotivControlPanel: mEngine.RemoteConnect(iServer, 3008); break; case TEmotivConnectionMode.EmoComposer: mEngine.RemoteConnect(iServer, 1726); break; } }