コード例 #1
0
ファイル: giris.cs プロジェクト: neozdemir/dictionary
        private void button1_Click(object sender, EventArgs e)
        {
            SqlCommand getir = new SqlCommand("select Kullanici_id from Kullanici_Tablo where Kullanici_Ad = @ad and Kullanici_sifre = @sifre", baglanti);

            getir.Parameters.AddWithValue("@ad", textBox1.Text);

            getir.Parameters.AddWithValue("@sifre", textBox2.Text);


            baglanti.Open();

            int id = Convert.ToInt32(getir.ExecuteScalar()); // getir.executuscalarle id alınır ve int degere cevrilir



            if (id != 0)

            {
                sozluk a = new sozluk();

                this.Hide();

                a.ShowDialog();
            }



            else
            {
                MessageBox.Show("Yalnış Kullanıcı adı veya Şifre");
            }
        }
コード例 #2
0
ファイル: zar.cs プロジェクト: neozdemir/dictionary
        private void sözlükToolStripMenuItem_Click(object sender, EventArgs e)
        {
            sozluk a = new sozluk();

            this.Hide();

            a.ShowDialog();
        }
コード例 #3
0
ファイル: turking.cs プロジェクト: neozdemir/dictionary
        private void türkçeİngilizceToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            sozluk a = new sozluk();

            this.Hide();

            a.ShowDialog();
        }
コード例 #4
0
ファイル: giris.cs プロジェクト: neozdemir/dictionary
        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            sozluk a = new sozluk();

            this.Hide();

            a.ShowDialog();
        }
コード例 #5
0
ファイル: ingturk.cs プロジェクト: neozdemir/dictionary
        private void kapatToolStripMenuItem_Click(object sender, EventArgs e)
        {
            sozluk a = new sozluk();

            this.Close();

           
        }