コード例 #1
0
 private void ButSave_Click(object sender, EventArgs e)
 {
     if (receivedAuto == null)
     {
         Auto auto = new Auto();
         EditAuto(auto);
         FMenu.AddTransport(auto);
     }
     else
     {
         EditAuto(receivedAuto);
     }
     Close();
 }
コード例 #2
0
 private void ButSave_Click(object sender, EventArgs e)
 {
     if (receivedMotorBike == null)
     {
         MotorBike motorBike = new MotorBike();
         EditMotorBike(motorBike);
         FMenu.AddTransport(motorBike);
     }
     else
     {
         EditMotorBike(receivedMotorBike);
     }
     Close();
 }
コード例 #3
0
        private void ButSave_Click(object sender, EventArgs e)
        {
            if (receivedSubmarine == null)
            {
                Submarine submarine = new Submarine();
                EditSubmarine(submarine);
                FMenu.AddTransport(submarine);
            }
            else
            {
                EditSubmarine(receivedSubmarine);
            }

            Close();
        }
コード例 #4
0
        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();
        }
コード例 #5
0
        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();
        }