コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DetailStrelba form = new DetailStrelba();

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

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