public bool SendMenu( IMenu m, bool throwOnOffline ) { if ( m_NetState != null ) { m.SendTo( m_NetState ); return true; } else if ( throwOnOffline ) { throw new MobileNotConnectedException( this, "Menu could not be sent." ); } else { return false; } }
public bool SendMenu( IMenu m, bool throwOnOffline = false ) { if ( m_Client == null ) { if ( throwOnOffline ) throw new MobileNotConnectedException( this, "Menu could not be sent." ); return false; } m.SendTo( m_Client ); return true; }