Beispiel #1
0
        protected void AddRecord()
        {
            DZamestnanec form = new DZamestnanec();

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

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