예제 #1
0
파일: UI.cs 프로젝트: remotesyssupport/cato
        //        public string GetCloudObjectTypes()
        //        {
        //            object o = GetSessionObject("cloud_object_types", "Cloud");
        //            if (o == null)
        //                o = Convert.ToString("");
        //            return o.ToString();
        //        }
        public CloudObjectType GetCloudObjectType(Provider p, string sObjectType)
        {
            if (p == null)
                RaiseError(Page, "Unable to get Cloud Provider.", false, "");

            CloudObjectType cot = p.GetObjectTypeByName(sObjectType);
            if (cot != null)
                return cot;

            return null;
        }