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

            frm.WindowState = FormWindowState.Maximized;
            frm.MdiParent   = this;
            frm.Show();
        }
Exemplo n.º 2
0
 private void btnOdaBul_Click(object sender, EventArgs e)
 {
     try
     {
         using (YurtContex ctx = new YurtContex())
         {
             Oda         o   = ctx.Odas.Find(Convert.ToInt32(cmbOdalar.SelectedValue));
             frmOdaKayit odk = new frmOdaKayit();
             odk.Show();
             odk.txtKat.Text       = o.Kat.ToString();
             odk.txtOdaNo.Text     = o.Oda_No.ToString();
             odk.txtKontenjan.Text = o.Kontenjan.ToString();
             odk.btnSil.Enabled    = true;
             odk.odaid             = o.Oda_ID;
             odk.btnOdaKaydet.Text = "Guncelle";
         }
     }
     catch (Exception)
     {
         throw;
     }
 }