public fmAuthentication(mainForm fm) { this.fm = fm; InitializeComponent(); //tbLogin.Text = "admin"; //tbPass.Text = "admin"; using (var newLocalDb = new TrudoyomkostDBContext(Properties.Settings.Default.TrudoyomkostDBConnectionString)) { _usersList = LinqQueryForTrudoyomkost.FillUsersList(newLocalDb); } }