public bool SendHuePicker( HuePicker p, bool throwOnOffline ) { if ( m_NetState != null ) { p.SendTo( m_NetState ); return true; } else if ( throwOnOffline ) { throw new MobileNotConnectedException( this, "Hue picker could not be sent." ); } else { return false; } }
public bool SendHuePicker( HuePicker p, bool throwOnOffline = false ) { if ( m_Client == null ) { if ( throwOnOffline ) throw new MobileNotConnectedException( this, "Hue picker could not be sent." ); return false; } p.SendTo( m_Client ); return true; }