示例#1
0
        private void initialise()
        {
            Log.logPrefix = "EasyIOI";

            this.iois = new IOIs(this);

            SessionOptions sessionOptions = new SessionOptions();

            sessionOptions.ServerHost = this.host;
            sessionOptions.ServerPort = this.port;

            this.session = new Session(sessionOptions, new EventHandler(processEvent));

            try
            {
                this.session.StartAsync();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }

            while (!this.ready)
            {
                ;
            }
        }
示例#2
0
 internal IOI(IOIs iois, string id)
 {
     this.iois   = iois;
     this.id     = id;
     this.fields = new Fields(this);
 }
示例#3
0
 internal IOI(IOIs iois)
 {
     this.iois   = iois;
     this.fields = new Fields(this);
 }