public static string AgentStatus(string key)
        {
            string result = string.Empty;

            switch (key)
            {
            case "0":
                result = LanguageResource.FindResourceMessageByKey("100");
                break;

            case "1":
                result = LanguageResource.FindResourceMessageByKey("101");
                break;

            case "2":
                result = LanguageResource.FindResourceMessageByKey("102");
                break;

            case "3":
                result = LanguageResource.FindResourceMessageByKey("busy");
                break;

            case "4":
                result = LanguageResource.FindResourceMessageByKey("free");
                break;

            case "5":
                result = LanguageResource.FindResourceMessageByKey("clearUp");
                break;

            case "6":
                result = LanguageResource.FindResourceMessageByKey("free");
                break;

            case "7":
                result = LanguageResource.FindResourceMessageByKey("107");
                break;

            case "8":
                result = LanguageResource.FindResourceMessageByKey("rest");
                break;

            default:
                break;
            }
            return(result);
        }
Exemplo n.º 2
0
 public static string FindMsgByKey(string key)
 {
     return(LanguageResource.FindResourceMessageByKey(key));
 }