Ejemplo n.º 1
0
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            FormAddEditDoktor frm = new FormAddEditDoktor();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                Baza = new Database();
                gridControl1.DataSource = Baza.doktor.ToList();
                gridView1.RefreshData();
            }
        }
Ejemplo n.º 2
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            doktor            doktor = (doktor)gridView1.GetRow(gridView1.FocusedRowHandle);
            FormAddEditDoktor frm    = new FormAddEditDoktor(doktor);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                Baza = new Database();
                gridControl1.DataSource = Baza.doktor.ToList();
                gridView1.RefreshData();
            }
        }