Exemplo n.º 1
0
    private void checkpss(Object sender, mCore.NewMessageReceivedEventArgs e)
    {
        bool b, c;

        number = e.Phone;
        string name = this.Session["unm"].ToString();

        c = DBComponent.chkmbno(e.Phone.Trim());
        if (c)
        {
            b = DBComponent.changenum(e.TextMessage, name, e.Phone);
            if (b)
            {
                s = 1;
            }
            else
            {
                s = 1;
                r = 2;
            }
        }
        else
        {
            s = 1;
            r = 1;
        }
    }
Exemplo n.º 2
0
    private void SendMSG(Object sender, mCore.NewMessageReceivedEventArgs e)
    {
        string smsMsg = DBComponent.userSession(e.TextMessage.Trim(), e.Phone);

        sendSMS(e.Phone, smsMsg);
        //Send the message
    }
Exemplo n.º 3
0
    private void objSMS_NewMessageReceived(object sender, mCore.NewMessageReceivedEventArgs e)
    {
        //New Message Indication Event
        //Display the new message

        //MessageBox.Show("FROM: " + e.Phone + "\r\n\r\nDATE/TIME: " + e.TimeStampRFC + "\r\n\r\nMESSAGE:\r\n" + e.TextMessage, "NEW MESSAGE RECEIVED...", MessageBoxButtons.OK, MessageBoxIcon.None);
        mCore.SMS.NewMessageReceivedEventHandler instance = new mCore.SMS.NewMessageReceivedEventHandler(SendMSG);
        instance.Invoke(sender, e);
    }
Exemplo n.º 4
0
 public void newmsg(object sender, mCore.NewMessageReceivedEventArgs e)
 {
     mCore.SMS.NewMessageReceivedEventHandler instance = new mCore.SMS.NewMessageReceivedEventHandler(checkpss);
     instance.Invoke(sender, e);
 }