private void ButSave_Click(object sender, EventArgs e) { if (receivedAuto == null) { Auto auto = new Auto(); EditAuto(auto); FMenu.AddTransport(auto); } else { EditAuto(receivedAuto); } Close(); }
private void ButSave_Click(object sender, EventArgs e) { if (receivedMotorBike == null) { MotorBike motorBike = new MotorBike(); EditMotorBike(motorBike); FMenu.AddTransport(motorBike); } else { EditMotorBike(receivedMotorBike); } Close(); }
private void ButSave_Click(object sender, EventArgs e) { if (receivedSubmarine == null) { Submarine submarine = new Submarine(); EditSubmarine(submarine); FMenu.AddTransport(submarine); } else { EditSubmarine(receivedSubmarine); } Close(); }
private void ButSave_Click(object sender, EventArgs e) { if (receivedMotorShip == null) { MotorShip motorShip = new MotorShip(); EditMotorShip(motorShip); FMenu.AddTransport(motorShip); } else { EditMotorShip((MotorShip)receivedMotorShip); } Close(); }
private void ButSave_Click(object sender, EventArgs e) { if (receivedSailboat == null) { Sailboat sailboat = new Sailboat(); EditSailboat(sailboat); FMenu.AddTransport(sailboat); } else { EditSailboat((Sailboat)receivedSailboat); } Close(); }