コード例 #1
0
 public DonarAlta(int posicioLliure, ref SistemaControl sistemaControl, ref Aeronau[] aeronaus) : this()
 {
     InitializeComponent();
     this.posicioLliure  = posicioLliure;
     this.sistemaControl = sistemaControl;
     this.aeronaus       = aeronaus;
 }
コード例 #2
0
ファイル: GestionarNau.cs プロジェクト: sectri/AeronauVS
 public GestionarNau(ref SistemaControl sistemaControl, int nauSeleccionada, ref Aeronau[] aeronaus)
 {
     InitializeComponent();
     this.sistemaControl  = sistemaControl;
     this.nauSeleccionada = nauSeleccionada;
     this.aeronaus        = aeronaus;
     aeronaus[nauSeleccionada].setAparcat(false);
     checkAll();
 }
コード例 #3
0
        public MenuSeleccionarNau(ref SistemaControl sistemaControl, ref Aeronau[] aeronaus) : this()
        {
            InitializeComponent();
            this.sistemaControl = sistemaControl;
            this.aeronaus       = aeronaus;

            for (int c = 0; c < 5; c++)
            {
                if (aeronaus[c] != null)
                {
                    if (c == 0)
                    {
                        menuSeleccionarNau1.Text = aeronaus[c].getMatricula();
                    }
                    if (c == 1)
                    {
                        menuSeleccionarNau2.Text = aeronaus[c].getMatricula();
                    }
                    if (c == 2)
                    {
                        menuSeleccionarNau3.Text = aeronaus[c].getMatricula();
                    }
                    if (c == 3)
                    {
                        menuSeleccionarNau4.Text = aeronaus[c].getMatricula();
                    }
                    if (c == 4)
                    {
                        menuSeleccionarNau5.Text = aeronaus[c].getMatricula();
                    }
                }
                else
                {
                    if (c == 0)
                    {
                        menuSeleccionarNau1.Enabled = false;
                    }
                    if (c == 1)
                    {
                        menuSeleccionarNau2.Enabled = false;
                    }
                    if (c == 2)
                    {
                        menuSeleccionarNau3.Enabled = false;
                    }
                    if (c == 3)
                    {
                        menuSeleccionarNau4.Enabled = false;
                    }
                    if (c == 4)
                    {
                        menuSeleccionarNau5.Enabled = false;
                    }
                }
            }
        }