예제 #1
0
        private void btnNewtransportation_Click(object sender, EventArgs e)
        {
            ShowTransportationForm stf = new ShowTransportationForm(new Transportation(0, 0, 0), this);

            Hide();
            stf.ShowDialog();
        }
예제 #2
0
 private void btnEdittrs_Click(object sender, EventArgs e)
 {
     if (lbTransportations.SelectedItem != null)
     {
         ShowTransportationForm stf = new ShowTransportationForm((Transportation)lbTransportations.SelectedItem, this);
         Hide();
         stf.ShowDialog();
     }
 }