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

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

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