private void Connection_Click(object sender, EventArgs e) { connectionStr = @"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=""" + filename + @""";Integrated Security=True;Connect Timeout=30"; Properties.Settings.Default["Conecction"] = connectionStr; Properties.Settings.Default.Save(); if (Way.Text.Length > 0) { //b1.Visible = true; //b2.Visible = true; MessageBox.Show("Connection Successfull"); //Close(); var adminPanel = new AdminPanel(); adminPanel.ShowDialog(); } else { MessageBox.Show("Select DB to connect please"); } }
private void logOutBtn_Click(object sender, EventArgs e) { Form login = new AdminPanel(); login.ShowDialog(); }
private void buttonLogOutFromTournamentCreation_Click(object sender, EventArgs e) { Form login = new AdminPanel(); login.ShowDialog(); }