Habanero.Faces.Win.BOEditorControlUtils.GetUiForm C# (CSharp) Method

GetUiForm() private static method

private static GetUiForm ( IClassDef classDef, string uiDefName ) : IUIForm
classDef IClassDef
uiDefName string
return IUIForm
        private static IUIForm GetUiForm(IClassDef classDef, string uiDefName)
        {
            IUIForm uiForm;
            try
            {
                uiForm = ((ClassDef) classDef).UIDefCol[uiDefName].UIForm;
            }
            catch (HabaneroDeveloperException ex)
            {
                string developerMessage = "The 'IBOEditorControl' could not be created since the the uiDef '"
                                          + uiDefName + "' does not exist in the classDef for '"
                                          + classDef.ClassNameFull + "'";
                throw new HabaneroDeveloperException(developerMessage, developerMessage, ex);
            }
            if (uiForm == null)
            {
                string developerMessage = "The 'IBOEditorControl' could not be created since the the uiDef '"
                                          + uiDefName + "' in the classDef '" + classDef.ClassNameFull
                                          + "' does not have a UIForm defined";
                throw new HabaneroDeveloperException(developerMessage, developerMessage);
            }
            return uiForm;
        }
BOEditorControlUtils