Exemplo n.º 1
0
        public Form ShowNew()
        {
            if (!BaseWinFramework.CheckModuleAccessWithError(ModuleName,
                                                             SecurityVarName.DocumentNew, true))
            {
                return(null);
            }

            using (new WaitCursor())
            {
                CheckEntityType();
                _Form.Show();

                if (_UIN != null)
                {
                    _UIN.SetNew();
                    _UIN.SetSecurity(ModuleName);
                }
                else if (_Ief != null)
                {
                    _Ief.ShowNew();
                }
                _Form.BringToFront();
                return(_Form);
            }
        }