Exemple #1
0
        private void Login_Click(object sender, EventArgs e)
        {
            con.Open();
            cmd             = new SQLiteCommand();
            cmd.Connection  = con;
            cmd.CommandText = "SELECT Username,Password From Users";
            SQLiteDataReader Kayitoku = cmd.ExecuteReader();

            while (Kayitoku.Read())
            {
                if (Username.Text == Kayitoku[0].ToString() && Password.Text == Kayitoku[1].ToString())
                {
                    Mainpage Mainpage = new Mainpage();
                    Mainpage.OnlineUsername = Username.Text;

                    Mainpage.Show();

                    MessageBox.Show("Giriş Başarılı Partiye Hoşgeldiniz!! :)");
                }
            }

            con.Close();
        }
Exemple #2
0
        private void back_Click(object sender, EventArgs e)
        {
            Form Mainpage = new Mainpage();

            Mainpage.Show();
        }