protected void ShowMessage(string messageCode, MessageFuncOption option, string callBackScript, params object[] msgParams) { int icon = 0; string message = MessageManager.GetMessage(messageCode, msgParams); MessageInfo messageInfo = MessageManager.GetMessageInfo(messageCode); switch (messageInfo.Type) { case MessageType.ERROR: icon = 2; break; case MessageType.INFO: icon = 1; break; case MessageType.QUESTION: icon = 3; break; case MessageType.WARN: icon = 0; break; default: icon = 1; break; } this.MessageInfoView = new MessageInfoView(message, icon, option, callBackScript); }
protected void ShowAppErrorMessage(string message, MessageFuncOption option) { this.MessageInfoView = new MessageInfoView(message, 2, option, string.Empty); }