コード例 #1
0
        public IMenuSection CreateSection(string sectionName)
        {
            IMenuSection menuSection;

            if (sectionName.Contains("5022"))
            {
                menuSection = new OK5022MenuSection(sectionName, ReaderHelper.GetSerialNumber(sectionName));
            }
            else if (sectionName.Contains("5023"))
            {
                menuSection = new OK5023MenuSection(sectionName, ReaderHelper.GetSerialNumber(sectionName));
            }
            else if (sectionName.Contains("5122"))
            {
                menuSection = new Ok5122MenuSection(sectionName, ReaderHelper.GetSerialNumber(sectionName));
            }
            else if (sectionName.Contains("5422"))
            {
                menuSection = new Ok5422MenuSection(sectionName, ReaderHelper.GetSerialNumber(sectionName));
            }
            else
            {
                menuSection = null;
            }
            return(menuSection);
        }
コード例 #2
0
 public IMenuSection CreateSection(string sectionName)
 {
     return(sectionName.Contains("5027") ? new OK5027MenuSection(sectionName, ReaderHelper.GetSerialNumber(sectionName)) : null);
 }