Example #1
0
        public string GetSeverity(MKS.Core.Severity severity)
        {
            switch (severity)
            {
                case MKS.Core.Severity.Error:
                    //msg.ForeColor = System.Drawing.Color.Red;
                    return "danger";

                case MKS.Core.Severity.Warning:
                    //msg.ForeColor = System.Drawing.Color.OrangeRed;
                    return "warning";

                case MKS.Core.Severity.Information:
                    //msg.ForeColor = System.Drawing.Color.Blue;
                    return "info fade in";

                case MKS.Core.Severity.Success:
                    //msg.ForeColor = System.Drawing.Color.Green;
                    return "success fade in";
            }
            return null;
        }
Example #2
0
 public void ShowSecurity(string title, string message, MKS.Core.ProcessResults processResults)
 {
     throw new NotImplementedException();
 }
Example #3
0
        public void ShowMessage(string title, string message, MKS.Core.Severity severity)
        {
            Tuple<string, string, MKS.Core.Severity> t = new Tuple<string, string, MKS.Core.Severity>(title,message,severity);

            vd.Messages = t;
        }
Example #4
0
 public void ShowBusinessValidation(string title, string message, MKS.Core.ProcessResults processResults)
 {
     vd.BusinessMessages = processResults;
 }