Exemplo n.º 1
0
        protected string GetMessageWithMarkup(RequestFlowItemMessage message)
        {
            string str = "";

            switch (message.Type)
            {
            case RequestFlowItemMessageType.General:
            {
                str = "<i class=\"fa fa-info-circle\"></i>";
                break;
            }

            case RequestFlowItemMessageType.Success:
            {
                str = "<i class=\"fa fa-check-circle\"></i>";
                break;
            }

            case RequestFlowItemMessageType.Error:
            {
                str = "<i class=\"fa fa-times-circle\"></i>";
                break;
            }
            }
            return(string.Format("{0} {1}", str, message.Message));
        }
Exemplo n.º 2
0
        protected string GetMessageClass(RequestFlowItemMessage message)
        {
            RequestFlowItemMessageType type = message.Type;

            if (type == RequestFlowItemMessageType.Success)
            {
                return("success");
            }
            if (type == RequestFlowItemMessageType.Error)
            {
                return("error");
            }
            return(string.Empty);
        }