示例#1
0
        private void bolumlerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmBolumler frm = new frmBolumler();

            frm.MdiParent = this;
            frm.Show();
        }
示例#2
0
        private void dataGVeri_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                frmBolumler.fakulteID = Convert.ToInt32(dataGVeri.CurrentRow.Cells[0].Value);

                frmBolumler.fakulteAd    = dataGVeri.CurrentRow.Cells[1].Value.ToString();
                frmBolumler.fakulteSecim = true;

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

                frm.btnFakulteSec.BackColor = Color.FromArgb(119, 221, 119);
                frm.lbsSecim.Text           = frmBolumler.fakulteAd.ToString();
                this.Close();
            }
            catch (Exception)
            {
                MessageBox.Show("Dogru Alanı Seciniz...");
            }
        }