示例#1
0
        public static void closeAscxParent(string ascxControlName)
        {
            if (ascxControlName != null)
            {
                var ascxControlToClose = (ContainerControl)getAscx(ascxControlName);

                if (ascxControlToClose == null)
                {
                    PublicDI.log.error(
                        "in O2AscxGui.closeAscxParent, could not get control: {0}", ascxControlName);
                }
                else
                {
                    O2Forms.closeParentForm(ascxControlToClose);
                }
            }
        }