public FrmLogin() { InitializeComponent(); Vars.InitGlobalVars(); db = new UnitOfWork(); FormClosed += (s, e) => { db.Dispose(); }; lbVer.Text = "Аптека v." + Vars.Version; var sl = CNet.GetGatewayAddresses(); lbIp.Text = $"Ip адрес {CNet.LocalIpAddressAll(sl)} шлюз {sl}"; }