public static RTInterface Create(string type, bool needclose) { if (type.ToLower().Equals("edna")) { return(EDNAHelper.Instance()); } else if (type.ToLower().Equals("pi")) { return(PIHelper.Instance(needclose)); } else if (type.ToLower().Equals("pspace")) { return(pSpaceHelper.Instance()); } return(null); }
/// <summary> /// 根据类型初始化实时访问控制接口 /// </summary> /// <param name="type">枚举类型</param> /// <returns></returns> public static RTInterface Create(rtType type) { if (type == rtType.edna) { return(EDNAHelper.Instance()); } else if (type == rtType.pi) { return(PIHelper.Instance()); } else if (type == rtType.pSpace) { return(pSpaceHelper.Instance()); } return(null); }