public Form ShowViewWithKey(string Key) { if (!BaseWinFramework.CheckModuleAccessWithError(ModuleName, SecurityVarName.DocumentView, true)) { return(null); } using (new WaitCursor()) { CheckEntityType(); _Form.Show(); if (_UIN != null) { _UIN.SetSecurity(ModuleName); _UIN.FindKey(Key); } else if (_Ief != null) { _Ief.ShowViewWithKey(Key); } _Form.BringToFront(); return(_Form); } }