CSReportEditor.fMain.getControlOrSection C# (CSharp) Метод

getControlOrSection() приватный Метод

private getControlOrSection ( cEditor editor, string key ) : object
editor cEditor
key string
Результат object
        private object getControlOrSection(cEditor editor, string key)
        {
            if (key.Length > 1)
            {
                if (key.Substring(0, 1) == "S")
                {
                    return editor.getSectionOrSectionLineFromKey(key.Substring(1));
                }
                else 
                {
                    return editor.getReport().getControls().item(key);
                }
            }
            else 
            {
                return null;
            }
        }
fMain