Exemplo n.º 1
0
        public void ChangePlane(PlaneType planeType)
        {
            Debug.WriteLine(string.Format("Zmieniam samolot na: {0}", planeType));
            IPlane plane = PlaneFactory.CreatePlane(planeType);

            plane.Startup();
            Device[] devices = Devices;
            for (int i = 0; i < devices.Length; i++)
            {
                devices[i].SetPlane(plane);
            }
            CurrentPlane.Close();
            CurrentPlane = plane;
        }
Exemplo n.º 2
0
 private Globals()
 {
     CurrentPlane = PlaneFactory.CreatePlane(PlaneType.Test);
 }