Exemplo n.º 1
0
        private void emanetVerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmEmanetVer frm = new frmEmanetVer();

            frm.MdiParent = this;
            frm.Show();
        }
Exemplo n.º 2
0
        private void dataGVeri_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            try
            {
                if (frmEmanetVer.emanetVer)
                {
                    frmEmanetVer.ogrenciNo = Convert.ToInt32(dataGVeri.CurrentRow.Cells[0].Value);

                    frmEmanetVer.ogrenciAd    = dataGVeri.CurrentRow.Cells[1].Value.ToString() + " " + dataGVeri.CurrentRow.Cells[2].Value.ToString();
                    frmEmanetVer.ogrenciSecim = true;

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

                    frm.btnOgrneciSec.BackColor = Color.FromArgb(119, 221, 119);
                    frm.lblOgrenciSecim.Text    = frmEmanetVer.ogrenciAd.ToString();
                    frmEmanetVer.emanetVer      = false;
                    this.Close();
                }
                else if (frmEmanetOgrenci.emanetOgrenci)
                {
                    frmEmanetOgrenci.ogrenciNo = Convert.ToInt32(dataGVeri.CurrentRow.Cells[0].Value);

                    frmEmanetOgrenci.ogrenciAd    = dataGVeri.CurrentRow.Cells[1].Value.ToString() + " " + dataGVeri.CurrentRow.Cells[2].Value.ToString();
                    frmEmanetOgrenci.ogrenciSecim = true;

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

                    frm.btnOgrneciSec.BackColor = Color.FromArgb(119, 221, 119);
                    frm.lblOgrenciSecim.Text    = frmEmanetOgrenci.ogrenciAd.ToString();

                    frmEmanetOgrenci.emanetOgrenci = false;


                    this.Close();
                }
            }
            catch (Exception)
            {
                MessageBox.Show("Dogru Alanı Seciniz...");
            }
        }