void _riox_ObjectReceivedEvent(object o, RIOX.RIOXClient.ObjectReceivedEventArgs e) { RIOXData rd = (RIOXData)e.DataObject; Console.WriteLine("ObjectReceived " + rd.Count); // pass it through the CAT event parser since DDUtil passes them as command/data key/pair foreach(DictionaryEntry de in rd) { CATEventArgs c = new CATEventArgs((string)de.Key, (string)de.Value); Console.WriteLine("Key: {0} Val: {1}", de.Key, de.Value); CatcatEvent(this, c); } }
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(); }