Exemple #1
0
        private void btnSetShip_Click(object sender, EventArgs e)
        {
            logicServices = new ShipAlgorithm(nbShipWeight.Value);

            btnAddContainer.Enabled = true;
            btnStart.Enabled        = true;
            rtbProgramLog.Clear();

            rtbProgramLog.Text = String.Format("You successfully created the ship with the weight of {0} kg!",
                                               nbShipWeight.Value);

            lbUpdateShipInfo();
        }
 public void initialize()
 {
     TestLogic = new ShipAlgorithm(1200000);
 }