コード例 #1
0
ファイル: QueryUC.cs プロジェクト: amenayach/CrmManager
        public void GenerateCSharpClass(CrmEntity crmEntity)
        {
            if (string.IsNullOrWhiteSpace(CacheManager.Namespace))
            {
                CacheManager.Namespace = ControlMod.InputBox("", "Please enter a namespace", CacheManager.Namespace);
            }

            Manager.GenerateCSharpClass(ClassOptions.FromCrmEntity(crmEntity, CacheManager.Namespace));
        }
コード例 #2
0
        private void GenerateCSharpConstants()
        {
            if (lstEntities.SelectedItems.Count > 0)
            {
                Wait();

                if (string.IsNullOrWhiteSpace(CacheManager.Namespace))
                {
                    CacheManager.Namespace = ControlMod.InputBox("", "Please enter a namespace", CacheManager.Namespace);
                }

                foreach (object item in lstEntities.SelectedItems)
                {
                    _crmManager.GenerateCSharpConstants(ClassOptions.FromCrmEntity((CrmEntity)item, CacheManager.Namespace));
                }

                Wait(false);
            }
        }