Esempio n. 1
0
        protected void AddRecord()
        {
            DZbran form = new DZbran();

            if (form.OpenRecord(null))
            {
                form.ShowDialog();
                GetData();
            }
        }
Esempio n. 2
0
        protected void EditRecord()
        {
            Zbran selectedZbr = GetSelectedZbr();

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