| | |
| | | { |
| | | btnAddSceneBg.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | //if(!DB_ResidenceData.Instance.HomeGateway.gatewayStatus) |
| | | //if (DB_ResidenceData.Instance.CheckWhetherGatewayIdIsNull()) |
| | | //{ |
| | | // new PublicAssmebly().TipMsgAutoClose(Language.StringByID(StringId.GatewayOfflineCannotCreateScene), true); |
| | | // new PublicAssmebly().TipMsgAutoClose(Language.StringByID(StringId.UnableToCreateScenarioPleaseBindGateway), true); |
| | | // return; |
| | | //} |
| | | |
| | | if (DB_ResidenceData.Instance.CheckWhetherGatewayIdIsNull()) |
| | | { |
| | | new PublicAssmebly().TipMsgAutoClose(Language.StringByID(StringId.UnableToCreateScenarioPleaseBindGateway), true); |
| | | return; |
| | | } |
| | | Action backAction = () => { |
| | | this.RemoveFromParent(); |
| | | action(); |