コード例 #1
0
        private void btnAddDriver_Click(object sender, EventArgs e)
        {
            ShowDriverForm showdr = new ShowDriverForm(new Driver(" ", " "), this);

            Hide();
            showdr.ShowDialog();
        }
コード例 #2
0
 private void btnEditdr_Click(object sender, EventArgs e)
 {
     if (lbDrivers.SelectedItem != null)
     {
         ShowDriverForm showdr = new ShowDriverForm((Driver)lbDrivers.SelectedItem, this);
         Hide();
         showdr.ShowDialog();
     }
 }