Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            int rand = new Random().Next(10000, 99999);

            kitapEkle = new kitap_ekle(rand);

            kitapEkle.FormClosing += new FormClosingEventHandler(kitapEkleKapaniyor);

            kitapEkle.ShowDialog();
        }
Exemplo n.º 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            int indx = dataGridView1.SelectedRows.Count;

            if (indx > 0)
            {
                int id = Convert.ToInt32(dataGridView1.SelectedRows[0].Cells[0].Value.ToString());


                kitapEkle              = new kitap_ekle(Database.GetKitap(id));
                kitapEkle.FormClosing += new FormClosingEventHandler(kitapEkleKapaniyor);

                kitapEkle.ShowDialog();
            }

            else
            {
                MessageBox.Show("Güncellenecek öğrenciyi seçiniz.");
            }
        }
Exemplo n.º 3
0
 private void kitapEkleKapaniyor(object sender, FormClosingEventArgs e)
 {
     populateTable();
     kitapEkle = null;
 }