private void btnRIOXTest_Click(object sender, EventArgs e) { try { //DDUtilState.RadioData r = new DDUtilState.RadioData(); RIOX.RIOXData r = new RIOX.RIOXData(); _c = new RIOX.RIOXClient(r.GetType(), txtRIOXIP.Text, int.Parse(txtRIOXport.Text)); _c.SendCommand(new RIOX.RIOXCommand("UpDateType", "PSH:500")); _c.SendCommand(new RIOX.RIOXCommand("Sub", "ZZFA;")); _c.ObjectReceivedEvent += new RIOX.RIOXClient.ObjectReceivedEventHandler(c_ObjectReceivedEvent); } catch (Exception ex) { MessageBox.Show("Failure: " + ex.Message); } }
void TimerLongElapsed(object sender, ElapsedEventArgs e) { if (!_usingRIOX) { _cat.WriteCommand("ZZBS;"); _cat.WriteCommand("ZZDM;"); _cat.WriteCommand("ZZGT;"); _cat.WriteCommand("ZZPA;"); return; } // RIOX connection check if (_riox.IsConnected == false) { SetNotifyIconText("MiniDeluxe - RIOX Disconnected (" + _server.ConnectionCount + " connections)"); _riox.Connect(); } _riox.SendCommand(new RIOXCommand("Sub", "ZZIF;ZZFA;ZZFB;ZZBS;ZZDM;ZZGT;ZZPA;ZZFI;")); }