Пример #1
0
 private void btnIlceKayit_Click(object sender, EventArgs e)
 {
     if (lkuIl.EditValue != null)
     {
         Form_IlceTanim form = new Form_IlceTanim(lkuIl.Text, Convert.ToInt32(lkuIl.EditValue), 0);
         form.ShowDialog();
         lkuIl_Properties_EditValueChanged(null, null);
     }
 }
Пример #2
0
        private void btnIlceDuzenle_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            //DataRow selectedRow = gridilceView.GetDataRow(gridilceView.FocusedRowHandle);
            DataRow selectedRow = gridilceView.GetFocusedDataRow();

            if (selectedRow != null)
            {
                string ilce_adi = selectedRow["IlceAd"].ToString();
                int    ilce_id  = Convert.ToInt32(selectedRow["IlceId"]);

                if (lkuIl.EditValue != null)
                {
                    Form_IlceTanim form = new Form_IlceTanim(lkuIl.Text, Convert.ToInt32(lkuIl.EditValue), ilce_id, ilce_adi, 1);
                    form.ShowDialog();

                    lkuIl_Properties_EditValueChanged(null, null);
                }
            }
        }