public void KetNot()
        {
            using (SqlConnection connection = new SqlConnection(connectionSTR))
            {
                try
                {
                    MessageBox.Show("Openning Connection ...");

                    connection.Open();

                    MessageBox.Show("Connection successful!");

                    flogin        lg = new flogin();
                    ServerConnect sv = new ServerConnect();
                    sv.Hide();
                    lg.Show();
                }
                catch (Exception e)
                {
                    MessageBox.Show("Error: " + e.Message);
                }
            }
        }
Exemple #2
0
 public void HideJoinServer() => serverConnect.Hide();