示例#1
0
        private void btnsec_Click(object sender, EventArgs e)
        {
            if (griddeposec.SelectedRowsCount != 0)
            {
                string depokodu = griddeposec.GetFocusedRowCellValue(colDepoKodu).ToString();

                entity  = context.Depolar.SingleOrDefault(c => c.DepoKodu == depokodu);
                secildi = true;
                this.Close();
            }
        }
 public FrmDepoİslem(tables.Depo entity)
 {
     InitializeComponent();
     _entity = entity;
     txtdepokodu.DataBindings.Add("Text", _entity, "DepoKodu");
     txtdepoadi.DataBindings.Add("Text", _entity, "DepoAdi");
     txtyetkilikodu.DataBindings.Add("Text", _entity, "YetkiliKodu");
     txtyetkiliadı.DataBindings.Add("Text", _entity, "YetkiliAdi");
     txtIl.DataBindings.Add("Text", _entity, "Il");
     txtIlce.DataBindings.Add("Text", _entity, "Ilce");
     txtSemt.DataBindings.Add("Text", _entity, "Semt");
     txtAdres.DataBindings.Add("Text", _entity, "Adres");
     memoaciklama.DataBindings.Add("Text", _entity, "Aciklama");
 }