public void Login() { WypozyczalniaDataClassesDataContext dbContext = new WypozyczalniaDataClassesDataContext( //"Data Source=HANIA-LAPTOP\\SQLEXPRESS;Initial Catalog=Test2;User ID=sa;Password=Admin1"); DatabaseSettings.CreateConnectionString(form.UserName, form.Password)); DatabaseSettings.Save(form.UserName); BaseView initForm = new ClientsView(); Controller controller = new Controller(dbContext, initForm); initForm.Show(); form.Hide(); }
public void Login() { WypozyczalniaDataClassesDataContext dbContext = new WypozyczalniaDataClassesDataContext("Data Source=(LocalDB)\\v11.0;AttachDbFilename=C:\\Users\\Paweł\\Documents\\GitHub\\Wypozyczalnia\\Wypozyczalnia\\myDB.mdf;Integrated Security=True;Connect Timeout=30"); //"Data Source=HANIA-LAPTOP\\SQLEXPRESS;Initial Catalog=Test2;User ID=sa;Password=Admin1"); // DatabaseSettings.CreateConnectionString(form.UserName, form.Password)); DatabaseSettings.Save(form.UserName); BaseView initForm = new ClientsView(); Controller controller = new Controller(dbContext, initForm); initForm.Show(); form.Hide(); }