jjzjj

ButtonIDConstants

全部标签

c# - 在方法内部等待,直到事件被捕获

我对C#中的一个方法有这个问题。我创建了一个方法,该方法从名为Phone.GetLampMode();的dll中调用一个函数现在Phone.GetLampMode不返回任何内容。数据在“onGetLampModeResponse”事件中返回。有没有一种方法可以在我的方法中等待,直到我从onGetLampModeResponse事件中获取数据?publicboolcheckLamp(intiLamp){Phone.ButtonIDConstantsbtn=newPhone.ButtonIDConstants();btn=Phone.ButtonIDConstants.BUTTON_1;b