public static void ShowAuthWnd(Check chk) { var authCtrl = new MB.PBAuthorization(); var mW = PDSystem.ModalWindowsForegraund.GetModalWindow(authCtrl); authCtrl.SetOwnerWnd(mW); if (!(bool)mW.ShowDialog()) { if (authCtrl.ProcUser != null && authCtrl.ProcUser.Auth) { AlohaTSClass.AddDishToCurentChkVarName(IdItem, $"Id гостя:{authCtrl.ProcUser.PhoneStr}"); ShowInfohWnd(chk, authCtrl.ProcUser); } } }