public void Respond(string payload) { if (payload == null) { debugPrint("[Respond] payload == null"); } if (OnRespond == null) { debugPrint("[Respond] OnRespond == null"); } WaitingServerAnsver.hide(); OnRespond(this, new RespondEventArgs(payload)); }
public void Error(ErrorType type, string msg) { WaitingServerAnsver.hide(true); this.OnError(this, new ErrorEventArgs(type, msg)); //Errors.showError(Errors.TypeError.ES_CONNECT_ERROR); }