Exemplo n.º 1
0
        protected void AddRecord()
        {
            DZamestnanec form = new DZamestnanec();

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

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