コード例 #1
0
        protected void AddRecord()
        {
            DStrelba form = new DStrelba();

            if (form.OpenRecord(null))
            {
                form.ShowDialog();
                GetData();
            }
        }
コード例 #2
0
        protected void EditRecord()
        {
            Strelba selectedStr = GetSelectedStr();

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