public void Stop() { _stopping = true; try { if (_timerShort != null) { _timerShort.Stop(); } if (_timerLong != null) { _timerLong.Stop(); } if (_cat != null) { _cat.Close(); } if (_server != null) { _server.Close(); } if (_riox != null) { if (_riox.IsConnected) { _riox.SendCommand(new RIOXCommand("UnSub", "NONE")); } _riox.Close(); } _cat = null; _server = null; _timerShort = null; _timerLong = null; SetNotifyIconText("MiniDeluxe - Stopped"); } catch (Exception e) { _notifyIcon.MessageBox("While stopping: " + e.Message + "\n" + e.StackTrace); } finally { _stopping = false; } }
void c_ObjectReceivedEvent(object o, RIOX.RIOXClient.ObjectReceivedEventArgs e) { //DDUtilState.RadioData r = (DDUtilState.RadioData)e.DataObject; RIOX.RIOXData r = (RIOX.RIOXData)e.DataObject; Console.WriteLine("R: " + r.ToString()); foreach (DictionaryEntry de in r) { Console.WriteLine("Key: {0} Value {1}", de.Key, de.Value); } MessageBox.Show("Success: Received Frequency: " + r["ZZFA"]); _c.Close(); }