예제 #1
0
		public const int timeNeedToMoveToDeck = 15; // 15 minuti per muove l'elicottero sul ponte dall'hangar

		public SpotManager (int SpotNum, InfoWindow winI): base("Manager_per_Spot")
		{
			this.WinI = InfoWindow.Instance();
			this.TotSpot = SpotNum;
			this.Stato = StatusManager.Empty;  // setta lo stato come vuoto 
			this.Action = ActionManager.Wait; // le azioni sono in attesa di informazioni aggiuntive
		
		}
예제 #2
0
 // COSTRUTTORE DELLA CLASSE SPOT OPTION
 protected SpotOptions(int spot, InfoWindow _win) :  base(Gtk.WindowType.Toplevel)
 {
     this.WinI     = InfoWindow.Instance();          // gli passo la finestra informazioni
     _totSpot      = spot;
     this._spotRec = 0;
     Build();
     WinI.InsertSomeText("OPZIONI SPOT: EFFETTUATA APERTURA FINESTRA OPZIONI SPOT");
     SpotM = (SpotManager)FactoryManager.Make(2, spot, WinI); // viene creato lo Spot Manager tramite factory method
     SpotM.MakeList(spot);                                    // crea la  lista iniziale di un numero di spot impostato
     this.label1.Text = ("Numero di Record SPOT #  " + this._spotRec);
     this.InitValue();
     this.label1.Text = "Record # " + _spotRec + " Record inseriti: " + SpotM.Spotlist.Count +
                        " Record disponibli: " + this._totSpot;
 }