Exemple #1
0
        private void btnIlKayit_Click(object sender, EventArgs e)
        {
            Form_IlTanim form = new Form_IlTanim(0);

            form.ShowDialog();

            illerigetir();
        }
        private void btnIlKaydet_Click(object sender, EventArgs e)
        {
            Form_IlTanim form = new Form_IlTanim(0);

            form.ShowDialog();


            IdeaV2WBS.IdeaV2 Serv = new IdeaV2WBS.IdeaV2();
            DataSet          ds   = Serv.IlListesi();

            lkuIl.Properties.DataSource = ds.Tables[0];

            lkuIl.EditValue = form.yeniId;
        }
Exemple #3
0
        private void btnIlDuzenle_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            //DataRow selectedRow = gridilceView.GetDataRow(gridilceView.FocusedRowHandle);
            DataRow selectedRow = gridilView.GetFocusedDataRow();

            if (selectedRow != null)
            {
                string iladi  = selectedRow["IlAd"].ToString();
                int    ilceid = Convert.ToInt32(selectedRow["IlId"]);

                Form_IlTanim form = new Form_IlTanim(ilceid, 1, iladi);
                form.ShowDialog();
                illerigetir();
            }
        }