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