示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DetailZamestnanec form = new DetailZamestnanec();

            if (form.OpenRecord(null))
            {
                form.ShowDialog();
                GetData();
            }
        }
示例#2
0
        protected void EditRecord()
        {
            Zamestnanec selectedZam = GetSelectedZam();

            if (selectedZam != null)
            {
                DetailZamestnanec form = new DetailZamestnanec();
                if (form.OpenRecord(selectedZam.idZam))
                {
                    form.ShowDialog();
                    GetData();
                }
            }
        }