コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            bool   cevap;
            DBcrud kayit = new DBcrud();

            cevap = kayit.uyevarmi(textBox1.Text, textBox2.Text);
            if (cevap == true)
            {
                MessageBox.Show("Giriş Başarılı");
            }
            else
            {
                MessageBox.Show("Giriş Başarısız");
            }
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: cevherertan/CV_Proje
        private void Form1_Load(object sender, EventArgs e)
        {
            DBcrud    yukle = new DBcrud();
            DataTable tbl   = new DataTable();

            //tbl.Load(yukle.bolumliste());
            tbl = yukle.bolumliste();
            //for (int i = 0; i < tbl.Rows.Count; i++)
            //{
            //comboBox1.Items.Add(tbl.Rows[i]["Ad"]);
            //comboBox1.Inde
            //}
            comboBox1.DataSource    = tbl;
            comboBox1.DisplayMember = "Ad";
            comboBox1.ValueMember   = "Kod";
        }