partial void swListen(NSObject sender) { if (device != null) { if (((UISwitch)sender).On) { device.Listen(); } else { device.Unlisten(); } } Console.WriteLine("listen: " + ((UISwitch)sender).On); }
void SetupOptions() { muted.ValueChanged += (sender, e) => { if (connection != null && connection.State == TCConnectionState.Connected) { connection.Muted = muted.Value; } }; listening.ValueChanged += (sender, e) => { if (device != null) { if (listening.Value) { device.Listen(); } else { device.Unlisten(); } } }; }