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

            c.ShowDialog();
            refreshDataGrid();
        }
コード例 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            int?id = getId();

            if (id != null)
            {
                FrmRenta c = new FrmRenta(id);
                c.ShowDialog();
                refreshDataGrid();
            }
        }