public override void OnPressureStatusChanging(ApparatusStatusContext context, PressureStatusBase oldStatus, PressureStatusBase newStatus) { if (PropupStatus == null && newStatus is NoPressure) { // 4、有人到无人,进入无人弹窗状态 PropupStatus = new PropupNoPeople(); } PropupStatus?.OnPressureStatusChanging(context, oldStatus, newStatus); }
public bool ShowDialogBox() { if (PropupStatus != null) { return(false); } // 7、出现对话框 this.PropupStatus = new PropupDialogBox(); return(true); }
public bool OnError() { if (PropupStatus != null) { return(false); } // 11、发生错误,打开系统错误消息框 this.PropupStatus = new PropupSystemError(); return(true); }