如何创建一个说我收到数据的事件? [英] How can create an event that say me data is received ?

查看:68
本文介绍了如何创建一个说我收到数据的事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我正在写发送短信应用程序.它具有发送和接收方法.我要创建
我班上的一个事件,该事件告诉我数据被接收.

Hy I am writting send SMS application . It has Send and Receive methods . I want to create
an event in my class that this event say to me data is received .
How I can create even that say me data is received ?

推荐答案


无需为此类事件创建事件.您应该检查发送和接收方法的返回类型.据此,您只能显示该消息.否则,在方法调用另一种方法向用户显示消息或警报之后,您可以做另一件事.


--Amit
Hi,
There is no need of creating the event for this kind of stuffs. You should check the return type of the Send & Receive method. According to that only you can show the message. Otherwise you can do one more thing, after the methods call one more method to show the message or alert to user.


--Amit


这篇关于如何创建一个说我收到数据的事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆