public string GetPowdertype()
        {
            string      ret = "";
            GrinderType tmp = (GrinderType)(_powdertype + 0x80);

            switch (tmp)
            {
            case GrinderType.GRINDER_NULL:
                ret = "Not Used";
                break;

            case GrinderType.GRINDER_COFFEE1:
                ret = "CoffeeBean1";
                break;

            case GrinderType.GRINDER_COFFEE2:
                ret = "CoffeeBean2";
                break;

            default:
                break;
            }

            return(ret);
        }
Beispiel #2
0
        public static string GetBeanType(UInt16 a)
        {
            string      ret = "";
            GrinderType tmp = (GrinderType)a;


            switch (tmp)
            {
            case GrinderType.GRINDER_NULL:
                ret = "Not Used";
                break;

            case GrinderType.GRINDER_COFFEE1:
                ret = "CoffeeBean1";
                break;

            case GrinderType.GRINDER_COFFEE2:
                ret = "CoffeeBean2";
                break;

            default:
                break;
            }

            return(ret);
        }