private void dataGVeri_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                frmOgrenci.bolumKodu = Convert.ToInt32(dataGVeri.CurrentRow.Cells[0].Value);

                frmOgrenci.bolumAd    = dataGVeri.CurrentRow.Cells[1].Value.ToString();
                frmOgrenci.bolumSecim = true;

                frmOgrenci frm = null;
                foreach (Form f in Application.OpenForms)
                {
                    if (f.Name == "frmOgrenci")
                    {
                        frm = (frmOgrenci)f;
                    }
                }

                frm.btnBolumSec.BackColor = Color.FromArgb(119, 221, 119);
                frm.lbsSecim.Text         = frmOgrenci.bolumAd.ToString();
                this.Close();
            }
            catch (Exception)
            {
                MessageBox.Show("Dogru Alanı Seciniz...");
            }
        }
Example #2
0
        private void ogrenciToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmOgrenci frm = new frmOgrenci();

            frm.MdiParent = this;
            frm.Show();
        }