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

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

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