示例#1
0
        protected override void OnLoad(EventArgs e)
        {
            planet = getPlanet();
            if( planet == null ) {
                throw new AlnitakException( "Planeta  invlido @ ShowPlanetFleet:getAllFleets " );
            }

            quantityValidator.ErrorMessage = info.getContent("fleet_quantError");
            moveShips.Text =  info.getContent("fleet_moveShips");
            moveAllShips.Text = info.getContent("fleet_moveAllShips");

            moveShips.Click += new EventHandler(moveShips_Click);
            moveAllShips.Click += new EventHandler(moveAllShips_Click);
        }
示例#2
0
        protected override void OnLoad(EventArgs e)
        {
            planet = getPlanet();
            if (planet == null)
            {
                throw new AlnitakException("Planeta  invlido @ ShowPlanetFleet:getAllFleets ");
            }

            quantityValidator.ErrorMessage = info.getContent("fleet_quantError");
            moveShips.Text    = info.getContent("fleet_moveShips");
            moveAllShips.Text = info.getContent("fleet_moveAllShips");

            moveShips.Click    += new EventHandler(moveShips_Click);
            moveAllShips.Click += new EventHandler(moveAllShips_Click);
        }