Example #1
0
        protected void AddRecord()
        {
            DZakaznik form = new DZakaznik();

            if (form.OpenRecord(null))
            {
                form.ShowDialog();
                GetData();
            }
        }
Example #2
0
        protected void EditRecord()
        {
            Zakaznik selectedZak = GetSelectedZak();

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