コード例 #1
0
        private void EditBtn_Click(object sender, EventArgs e)
        {
            TrapBuilderForm trapBuilderForm = new TrapBuilderForm(this.fTrapElement.Trap);

            if (trapBuilderForm.ShowDialog() == DialogResult.OK)
            {
                this.fTrapElement.Trap = trapBuilderForm.Trap;
                this.update_view();
            }
        }
コード例 #2
0
        private void EditBtn_Click(object sender, EventArgs e)
        {
            TrapBuilderForm dlg = new TrapBuilderForm(fTrapElement.Trap);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                fTrapElement.Trap = dlg.Trap;
                update_view();
            }
        }