/*private void DoWait() * { * while(m_keepwaiting) * { * //wait on * OpenNETCF.Win32.Core.WaitForSingleObject(m_eventhandle, 0xffffffff); * * if(MessageReceived!=null) * { * MessageReceived(this, new EventArgs()); * } * } * * } * public event EventHandler MessageReceived;*/ /// <summary> /// Sends a binary SMS message to the specified address. /// </summary> /// <param name="destination">Address of recipient.</param> /// <param name="message">Binary representation of message contents.</param> /// <returns>An identifier for the message which can be used to check the status.</returns> public int SendMessage(SmsAddress destination, byte[] message) { TextProviderSpecificData tpsd = new TextProviderSpecificData(); tpsd.MessageClass = MessageClass.Class1; return(SendMessage(destination, message, tpsd)); }
/*private void DoWait() { while(m_keepwaiting) { //wait on OpenNETCF.Win32.Core.WaitForSingleObject(m_eventhandle, 0xffffffff); if(MessageReceived!=null) { MessageReceived(this, new EventArgs()); } } } public event EventHandler MessageReceived;*/ /// <summary> /// Sends a binary SMS message to the specified address. /// </summary> /// <param name="destination">Address of recipient.</param> /// <param name="message">Binary representation of message contents.</param> /// <returns>An identifier for the message which can be used to check the status.</returns> public int SendMessage(SmsAddress destination, byte[] message) { TextProviderSpecificData tpsd = new TextProviderSpecificData(); tpsd.MessageClass = MessageClass.Class1; return SendMessage(destination, message, tpsd); }