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)); }
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); } }