public IPilot HirePilot(string name)
 {
     // Pilot (name) hired
     IPilot pilot = new Pilot(name);
     //Console.WriteLine("Pilot {0} hired", pilot.Name);
     return pilot;
 }
Example #2
0
        public IPilot HirePilot(string name)
        { //май забива
            IsNameInUse(name);

            Pilot pilot = new Pilot(name);
            pilots.Add(pilot);
            return pilot;
        }
Example #3
0
 public void SetLeader(Pilot pilot)
 {
     leader = pilot;
     RemoveMember(leader);
     transform.position = leader.transform.position;
     leader.formation = this;
     leader.engines.MaxSpeed = FindSpeedCap();
 }
Example #4
0
 public void RemoveMember(Pilot pilot)
 {
     if(pilot.FormationLeader) {
         //todo do something here
     }
     pilot.formation = null;
     nodeMap.Remove(pilot);
     members.Remove(pilot);
 }
Example #5
0
	// Use this for initialization
	void Start () {
		pilot = new Pilot();
		pilot.engine = new Engine();
		pilot.engine.acceleration = acceleration;
		pilot.engine.maxThrust = maxThrust;
		pilot.heading = new Heading();
		pilot.heading.turnRate = turnRate;
		pilot.maxVelocity = maxVelocity;

		ship = GetComponent<IHW_Spaceship> ();
	}
        public ActionResult Create(Pilot pilot)
        {
            if (ModelState.IsValid)
            {
                db.Pilots.Add(pilot);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            ViewBag.AirlineID = new SelectList(db.Airlines, "AirlineID", "Name", pilot.AirlineID);
            return View(pilot);
        }
Example #7
0
	void Start () {
		//
		//Initialize the game in 'pause mode'
		//
		pauseMenu = GameObject.Find("PauseMenu").GetComponent<Canvas>();
		pauseHint = GameObject.Find ("PauseHint").GetComponent<Canvas>();
		targetReticule = GameObject.Find("TargetReticule").GetComponent<Canvas>();
		thisPilot = gameObject.GetComponent<Pilot>();
		thisPilot.enabled = false;
		thisGrounded = gameObject.GetComponent<Paused>();
		targetReticule.enabled = false;
		pauseHint.enabled = false;
	}
Example #8
0
 public bool AddMember(Pilot pilot)
 {
     if(members.Count == nodes.Length) {
         return false;
     }
     if (pilot.formation) {
         pilot.formation.RemoveMember(pilot);
     }
     nodeMap.Add(pilot, nodes[members.Count]);
     members.Add(pilot);
     pilot.formation = this;
     leader.engines.MaxSpeed = FindSpeedCap();
     return true;
 }
 protected override object[] CreateValues()
 {
     var cars = new object[ObjectCount];
     for (var i = 0; i < cars.Length; i++)
     {
         var car = new Car();
         car._name = "Car " + i;
         var pilot = new Pilot();
         car._pilot = pilot;
         pilot._name = "Pilot " + i;
         cars[i] = car;
     }
     return cars;
 }
Example #10
0
 public IPilot HirePilot(string name)
 {
     if (!pilots.Any(p => p.Name == name))
     {
         IPilot pilot = new Pilot(name);
         this.pilots.Add(pilot);
         return pilot;
     }
     else
     {
         throw new ArgumentException("Pilot name should be unique");
     }
     
 }
Example #11
0
        public static float GetLastEjectionChance(this Pilot pilot)
        {
            float lec = 0;

            if (pilot.StatCollection.ContainsStatistic("LastEjectionChance"))
            {
                lec = pilot.StatCollection.GetValue <float>("LastEjectionChance");
            }
            else
            {
                pilot.StatCollection.AddStatistic <float>("LastEjectionChance", lec);
            }
            Logger.Info($"[PilotExtensions_GetLastEjectionChance] ({pilot.Callsign}) LastEjectionChance: {lec}");
            return(lec);
        }
Example #12
0
        public void BoundaryTest_ForLicenceNo_Length()
        {
            Pilot pilot = new Pilot()
            {
                LicenceNo = "1114564"
            };
            var MinLength = 10;
            var MaxLength = 10;

            //Action
            var actualLength = pilot.LicenceNo.Length;

            //Assert
            Assert.InRange(actualLength, MinLength, MaxLength);
        }
Example #13
0
        public string HirePilot(string name)
        {
            var pilot = new Pilot(name);

            for (int i = 0; i < pilots.Count; i++)
            {
                Pilot currentpilot = (Pilot)pilots[i];
                if (currentpilot.Name == name)
                {
                    return($"Pilot {name} is hired already");
                }
            }
            pilots.Add(pilot);
            return($"Pilot {name} hired");
        }
Example #14
0
        public static int GetStressLevel(this Pilot pilot)
        {
            int sl = 0;

            if (pilot.StatCollection.ContainsStatistic("StressLevel"))
            {
                sl = pilot.StatCollection.GetValue <int>("StressLevel");
            }
            else
            {
                pilot.StatCollection.AddStatistic <int>("StressLevel", sl);
            }
            Logger.Info($"[PilotExtensions_GetStressLevel] ({pilot.Callsign}) StressLevel: {sl}");
            return(sl);
        }
        private Pilot GetOrCreateCaptain()
        {
            var captainLinker = this.Trip.Pilots.SingleOrDefault(p => p.PilotPosition == PilotPositionEnum.Captain);

            if (captainLinker == null)
            {
                var newPilot = new Pilot();

                captainLinker = new TripPilot(this.Trip, newPilot, PilotPositionEnum.Captain);

                this.Trip.Pilots.Add(captainLinker);
            }

            return(captainLinker.Pilot);
        }
Example #16
0
        protected override object[] CreateValues()
        {
            var cars = new object[ObjectCount];

            for (var i = 0; i < cars.Length; i++)
            {
                var car = new Car();
                car._name = "Car " + i;
                var pilot = new Pilot();
                car._pilot  = pilot;
                pilot._name = "Pilot " + i;
                cars[i]     = car;
            }
            return(cars);
        }
Example #17
0
        public string HirePilot(string name)
        {
            Pilot pilot = new Pilot(name);

            if (this.pilotNames.Contains(name))
            {
                return(string.Format(OutputMessages.PilotExists, name));
            }
            else
            {
                this.pilots.Add(pilot);
                this.pilotNames.Add(name);
                return(string.Format(OutputMessages.PilotHired, name));
            }
        }
Example #18
0
        // GET: Pilot/Edit/5
        public async Task <ActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Pilot pilot = await db.Pilot.FindAsync(id);

            if (pilot == null)
            {
                return(HttpNotFound());
            }
            ViewBag.SifraPilota = new SelectList(db.Zaposleni, "ZaposleniId", "JMBG", pilot.SifraPilota);
            return(View(pilot));
        }
Example #19
0
        public PilotViewModel(INavigationService navigationService, IPilotsService service) : base(navigationService)
        {
            _model   = new Pilot();
            _service = service;

            GoBackCommand = new RelayCommand(goBack);


            SaveItemCommand = new RelayCommand(SaveItem);

            MessengerInstance.Register <Pilot>(this, entity =>
            {
                _model = entity;
            });
        }
Example #20
0
        public void CreateGetPilot_when_create_pilot_then_get_pilot_correct()
        {
            Pilot pilot = new Pilot()
            {
                Name = "name", Surname = "surname", Experience = 5
            };

            _airportService.Post(pilot);
            _airportService.SaveChanges();
            var newPilot = _airportService.GetAll <Pilot>().Last();

            Assert.AreEqual(pilot.Name, newPilot.Name);
            Assert.AreEqual(pilot.Surname, newPilot.Surname);
            Assert.AreEqual(pilot.Experience, newPilot.Experience);
        }
Example #21
0
        public Race ConvertLinesToObjects(string[] lines)
        {
            var race = new Race();

            foreach (string line in lines)
            {
                string[] data = Regex.Split(line, @"\s{1,}");

                Pilot pilot = this.CreatePilot(race, data);
                Lap   lap   = this.CreateLap(data);
                pilot.AddLap(lap);
            }

            return(race);
        }
        public string HirePilot(string name)
        {
            if (IsThatPilotExist(name))
            {
                return(String.Format(
                           OutputMessages.PilotExists,
                           name));
            }

            IPilot pilot = new Pilot(name);

            this.pilots.Add(name, pilot);

            return(String.Format(OutputMessages.PilotHired, name));
        }
Example #23
0
        public void BoundaryTest_ForPilotPhoneNo_Length()
        {
            Pilot pilot = new Pilot()
            {
                MobileNo = "981114564"
            };
            var MinLength = 10;
            var MaxLength = 10;

            //Action
            var actualLength = pilot.MobileNo.Length;

            //Assert
            Assert.InRange(actualLength, MinLength, MaxLength);
        }
Example #24
0
    private void Awake()
    {
        walker  = body.GetComponent <Walker>();
        jumper  = body.GetComponent <Jumper>();
        spinner = body.GetComponent <Spinner>();
        feet    = body.GetComponent <Feet>();
        stick   = body.GetComponent <StickToSurface>();

        GameObject playerGO = GameObject.FindWithTag(followTag);

        if (playerGO != null)
        {
            player = playerGO.GetComponentInChildren <Pilot>(true);
        }
    }
Example #25
0
        public Pilot UpdatePilotInfo(long id, Pilot pilot)
        {
            pilot.Id = id;
            var item = uow.Pilots.Update(pilot);

            if (item == null)
            {
                return(null);
            }
            else
            {
                uow.SaveChanges();
                return(item);
            }
        }
        public string HirePilot(string name)
        {
            IPilot pilot = new Pilot(name);

            if (!pilots.Any(p => p.Name == name))
            {
                pilots.Add(pilot);

                return($"Pilot {name} hired");
            }
            else
            {
                return($"Pilot {name} is hired already");
            }
        }
Example #27
0
        public string HirePilot(string name)
        {
            var pilotNeeded = this.pilots.FirstOrDefault(p => p.Name == name);

            if (pilotNeeded != null)
            {
                return($"Pilot {name} is hired already");
            }

            var newPilot = new Pilot(name);

            this.pilots.Add(newPilot);

            return($"Pilot {name} hired");
        }
 public ActionResult PilotDelete(int id, Pilot p)
 {
     try
     {
         // TODO: Add delete logic here
         p = db.Pilots.Where(x => x.PilotID == id).FirstOrDefault();
         db.Pilots.Remove(p);
         db.SaveChanges();
         return(RedirectToAction("Pilot_Details"));
     }
     catch
     {
         return(View());
     }
 }
Example #29
0
        private async void Button_Click(object sender, RoutedEventArgs e)
        {
            TimeSpan i;

            TimeSpan.TryParse(SExperience.Text, out i);
            Pilot newItem = new Pilot()
            {
                Id = ViewModel.SelectedPilot.Id, Name = SName.Text, Surname = SSurname.Text, BirthDate = SBirthDate.Date.Date, Experience = i
            };
            await ViewModel.Update(newItem);

            DetailContainer.Visibility = Visibility.Collapsed;
            FormContainer.Visibility   = Visibility.Collapsed;
            ViewModel.ListInit();
        }
Example #30
0
        public string HirePilot(string name)
        {
            if (this.pilots.Any(x => x.Name == name))
            {
                return(string.Format(OutputMessages.PilotExists,
                                     name));
            }

            IPilot pilot = new Pilot(name);

            this.pilots.Add(pilot);

            return(string.Format(OutputMessages.PilotHired,
                                 name));
        }
        public virtual void Test()
        {
            Pilot pilot = new Pilot("one", 1);

            A().Provider().StoreNew(pilot);
            A().Provider().Commit();
            ReplicateAll(A().Provider(), B().Provider(), null);
            pilot.SetName("modified");
            A().Provider().Update(pilot);
            A().Provider().Commit();
            ReplicateAll(A().Provider(), B().Provider(), null);
            Pilot pilotFromB = (Pilot)GetOneInstance(B(), typeof(Pilot));

            Assert.AreEqual("modified", pilotFromB.Name());
        }
        public void CreateCrew()
        {
            var boss           = new Boss("Bob");
            var sterwardessOne = new Stewardess("Jenna");
            var sterwardessTwo = new Stewardess("Jessie");

            var pilot       = new Pilot("James");
            var officialOne = new Official("Jhony");
            var officialTwo = new Official("Jin");

            var cop      = new Cop("Dean");
            var prisoner = new Prisoner("Sean");

            _terminal.AddPassengers(boss, sterwardessOne, sterwardessTwo, pilot, officialOne, officialTwo, cop, prisoner);
        }
Example #33
0
        public string getRegularHiringHallDescription(Pilot pilot)
        {
            string ret = "";

            if (pilot != null && Main.settings.enablePilotQuirks)
            {
                List <PilotQuirk> pilotQuirks = getQuirks(pilot);
                foreach (PilotQuirk quirk in pilotQuirks)
                {
                    ret += $"{quirk.quirkName}\n\n{quirk.description}\n\n";
                }
            }

            return(ret);
        }
        private Pilot FindPilot(string name)
        {
            IEnumerator pilots = A().Provider().GetStoredObjects(typeof(Pilot)).GetEnumerator
                                     ();

            while (pilots.MoveNext())
            {
                Pilot candidate = (Pilot)pilots.Current;
                if (candidate.Name().Equals(name))
                {
                    return(candidate);
                }
            }
            return(null);
        }
Example #35
0
        public static bool IsDesperate(this Pilot pilot)
        {
            int sl = 0;

            if (pilot.StatCollection.ContainsStatistic("StressLevel"))
            {
                sl = pilot.StatCollection.GetValue <int>("StressLevel");
            }
            else
            {
                pilot.StatCollection.AddStatistic <int>("StressLevel", sl);
            }
            Logger.Info($"[PilotExtensions_IsDesperate] ({pilot.Callsign}) IsDesperate: {(sl >= 4)}");
            return(sl >= 4);
        }
Example #36
0
 /// <summary>
 /// ロック
 /// </summary>
 public virtual void Lock()
 {
     if (lockObject)
     {
         lockObject = sm.GetNextLockObject(this, lockObject);
     }
     else
     {
         lockObject = sm.GetNextLockObject(this, this);
     }
     if (lockObject == this)
     {
         lockObject = null;
     }
 }
Example #37
0
        private Pilot CreatePilot(Race race, string[] data)
        {
            string pilotName = data[IndexType.pilotName];
            int    pilotCode = int.Parse(data[IndexType.pilotCode]);

            var pilot = this.FindPilot(pilotCode, race);

            if (pilot == null)
            {
                pilot = new Pilot(pilotCode, pilotName);
                race.AddPilot(pilot);
            }

            return(pilot);
        }
Example #38
0
        public void Update(int id, Pilot item)
        {
            Pilot temp = pilots.FirstOrDefault(t => t.Id == id);

            if (temp != null)
            {
                temp.Id         = item.Id;
                temp.Name       = item.Name;
                temp.Surname    = item.Surname;
                temp.Birth      = item.Birth;
                temp.Experience = item.Experience;

                SaveChanges();
            }
        }
Example #39
0
        public void Should_check_whether_smart_fortwo_has_driver_and_return_true_if_it_has()
        {
            var smartFortwo = new SmartFortwo();
            var driver      = new Pilot("driver name");

            smartFortwo.EnterDriver(driver);

            var place = new PlaceMock();

            place.SetSmartFortwo(smartFortwo);

            var hasDriver = place.SmartFortwoHasDriver();

            Assert.True(hasDriver);
        }
Example #40
0
        public async Task <PilotDetailsDto> GetPilotAsync(int id)
        {
            Pilot pilot = new Pilot();

            try
            {
                pilot = await context.Pilots.Include(ent => ent.Team).AsNoTracking().FirstOrDefaultAsync(x => x.Id == id);
            }
            catch (Exception ex)
            {
                logger.LogError(ex.Message);
            }

            return(mapper.Map <PilotDetailsDto>(pilot));
        }
        //private MachineFactory() { }
        //public static MachineFactory MFInstance
        //{
        //   get
        //   {
        //      if (instance == null)
        //      {
        //         instance = new MachineFactory();
        //      }
        //      return instance;
        //   }
        //}
        public IPilot HirePilot(string name)
        {
            IPilot newPilot = new Pilot(name);

            foreach (var pilot in alreadyHired)
            {
                if (name == pilot)
                {
                    string pilotString = String.Format("Pilot {0} hired", name);
                  throw new IndexOutOfRangeException(pilotString);
                }
            }
            alreadyHiredPilots.Add(newPilot);
               alreadyHired.Add(name);
               return newPilot;
        }
Example #42
0
	//
	//Runs once when first created
	//
	void Start () {
		pilot = GameObject.Find("Player").GetComponent<Pilot>();
		charTrans = GameObject.Find("Player").GetComponent<Transform>();
		forwardOffsetter = new Offsetter(new Vector3(-2, 0.6f, 0), 10, 1.6f);
		LROffsetter = new Offsetter(new Vector3(0, 0, 1), 10, 1.5f, true, Vector3.zero, 40);
		upDownOffsetter = new Offsetter(new Vector3(0, -1.5f, 0), new Vector3(0, .3f, 0), 10, 1.2f, true, Vector3.zero, 40);
		shake = new ConstantShake(0);

		//
		//Get the parameters for the constantShake object from the external Options object
		//
		if(!GameObject.Find("Options").GetComponent<Options>().motionBob)
			shake.setShakeSize(0);
		else
			shake.setShakeSize(
				GameObject.Find("Options").GetComponent<Options>().motionBobSize / 100 );
	}
Example #43
0
        public void CreateAirplanePilotsBridgeTest()
        {
            Airplane airplane = new Airplane { Model = "Fastdie" };
            Pilot pilot = new Pilot { Login = "******", Password = "******" };

            AirplanePilot bridge = new AirplanePilot { Airplane = airplane, Pilot = pilot };

            airlinesContext.AirplaneSet.Add(airplane);
            airlinesContext.UserSet.Add(pilot);
            airlinesContext.AirplanePilotSet.Add(bridge);

            airlinesContext.SaveChanges();

            Assert.IsTrue(airlinesContext.AirplanePilotSet.Count() == 1);
            Assert.IsTrue(airlinesContext.AirplanePilotSet.First().AirplaneId == airplane.Id);
            Assert.IsTrue(airlinesContext.AirplanePilotSet.First().PilotId == pilot.Id);

            Assert.IsTrue(airlinesContext.AirplaneSet.Count() == 1);
            Assert.IsTrue(airlinesContext.UserSet.Count() == 1);

            Assert.IsNotNull((airlinesContext.UserSet.First() as Pilot).AirplanePilot);
            Assert.IsNotNull(airlinesContext.AirplaneSet.First().AirplanePilot);
        }
Example #44
0
 // Use this for initialization
 public ReturnState(Pilot owner)
     : base(owner)
 {
 }
Example #45
0
File: Car.cs Project: erdincay/db4o
 public Car(string model, Pilot pilot)
 {
     _model = model;
     _pilot = pilot;
 }
Example #46
0
 public override void OnAwake()
 {
     pilot = GetComponent<Pilot>();
     weapons = GetComponent<WeaponSystem>();
 }
Example #47
0
	protected void Start() {
		speed = 25f;
		pilot = GetComponent<Pilot>();
	}
Example #48
0
 public override void OnAwake()
 {
     pilot = GetComponent<Pilot>();
 }
Example #49
0
 // Use this for initialization
 public MoveState(Pilot owner)
     : base(owner)
 {
 }
Example #50
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DVBSChannel"/> class.
 /// </summary>
 public DVBSChannel()
 {
   SwitchingFrequency = 0;
   DisEqc = DisEqcType.SimpleA;
   _bandType = BandType.Universal;
   _satelliteIndex = -1;
   _modulation = ModulationType.ModQpsk;
   _innerFecRate = BinaryConvolutionCodeRate.RateNotSet;
   _pilot = Pilot.NotSet;
   _rollOff = RollOff.NotSet;
 }
Example #51
0
 public static void StoreFirstPilot(IObjectContainer db)
 {
     Pilot pilot1 = new Pilot("Michael Schumacher", 100);
     db.Store(pilot1);
     Console.WriteLine("Stored {0}", pilot1);
 }
Example #52
0
 public static void RetrieveAllPilotQBE(IObjectContainer db)
 {
     Pilot proto = new Pilot(null, 0);
     IObjectSet result = db.QueryByExample(proto);
     foreach (var pilot in result) { }
     ListResult(result);
 }
Example #53
0
 public static void StoreSecondPilot(IObjectContainer db)
 {
     Pilot pilot2 = new Pilot("Rubens Barrichello", 99);
     db.Store(pilot2);
     Console.WriteLine("Stored {0}", pilot2);
 }
Example #54
0
 public override void OnAwake()
 {
     pilot = GetComponent<Pilot>();
     timer = new Timer(time);
 }
Example #55
0
 public Car(Pilot pilot, string name)
 {
     this.pilot = pilot;
     this.name = name;
 }
Example #56
0
 public static void RetrievePilotByName(IObjectContainer db)
 {
     Pilot proto = new Pilot("Michael Schumacher", 0);
     IObjectSet result = db.QueryByExample(proto);
     ListResult(result);
 }
Example #57
0
 public Car(string model)
 {
     _model = model;
     _pilot = null;
 }
Example #58
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DVBSChannel"/> class.
 /// </summary>
 /// <param name="chan">The chan.</param>
 public DVBSChannel(DVBSChannel chan)
   : base(chan)
 {
   _polarisation = chan.Polarisation;
   _symbolRate = chan.SymbolRate;
   _switchingFrequency = chan.SwitchingFrequency;
   DisEqc = chan.DisEqc;
   _bandType = chan.BandType;
   _modulation = chan.ModulationType;
   _innerFecRate = chan.InnerFecRate;
   _pilot = chan.Pilot;
   _rollOff = chan.Rolloff;
   _satelliteIndex = chan.SatelliteIndex;
 }
Example #59
0
 internal void load(XmlReader reader)
 {
     switch (reader.Name)
     {
         case "CarrierFrequency":
             Frequency = Int32.Parse(reader.ReadString());
             break;
         case "Polarisation":
             switch (reader.ReadString())
             {
                 case "CircularL":
                     polarization = new SignalPolarization(SignalPolarization.CircularLeft);
                     break;
                 case "CircularR":
                     polarization = new SignalPolarization(SignalPolarization.CircularRight);
                     break;
                 case "LinearH":
                     polarization = new SignalPolarization(SignalPolarization.LinearHorizontal);
                     break;
                 case "LinearV":
                     polarization = new SignalPolarization(SignalPolarization.LinearVertical);
                     break;
             }
             break;
         case "SymbolRate":
             symbolRate = Int32.Parse(reader.ReadString());
             break;
         case "InnerFecRate":
             switch (reader.ReadString())
             {
                 case "Rate1_2":
                     fec = new FECRate(FECRate.FECRate12);
                     break;
                 case "Rate1_3":
                     fec = new FECRate(FECRate.FECRate13);
                     break;
                 case "Rate1_4":
                     fec = new FECRate(FECRate.FECRate14);
                     break;
                 case "Rate2_3":
                     fec = new FECRate(FECRate.FECRate23);
                     break;
                 case "Rate2_5":
                     fec = new FECRate(FECRate.FECRate25);
                     break;
                 case "Rate3_4":
                     fec = new FECRate(FECRate.FECRate34);
                     break;
                 case "Rate3_5":
                     fec = new FECRate(FECRate.FECRate35);
                     break;
                 case "Rate4_5":
                     fec = new FECRate(FECRate.FECRate45);
                     break;
                 case "Rate5_11":
                     fec = new FECRate(FECRate.FECRate511);
                     break;
                 case "Rate5_6":
                     fec = new FECRate(FECRate.FECRate56);
                     break;
                 case "Rate6_7":
                     fec = new FECRate(FECRate.FECRate67);
                     break;
                 case "Rate7_8":
                     fec = new FECRate(FECRate.FECRate78);
                     break;
                 case "Rate8_9":
                     fec = new FECRate(FECRate.FECRate89);
                     break;
                 case "Rate9_10":
                     fec = new FECRate(FECRate.FECRate910);
                     break;
             }
             break;
         case "CollectionType":
             switch (reader.ReadString())
             {
                 case "EIT":
                     CollectionType = CollectionType.EIT;
                     break;
                 case "MHEG5":
                     CollectionType = CollectionType.MHEG5;
                     break;
                 case "OPENTV":
                     CollectionType = CollectionType.OpenTV;
                     break;
                 case "MHW1":
                     CollectionType = CollectionType.MediaHighway1;
                     break;
                 case "MHW2":
                     CollectionType = CollectionType.MediaHighway2;
                     break;
                 case "FREESAT":
                     CollectionType = CollectionType.FreeSat;
                     break;
                 case "PSIP":
                     CollectionType = CollectionType.PSIP;
                     break;
                 case "DISHNETWORK":
                     CollectionType = CollectionType.DishNetwork;
                     break;
                 case "BELLTV":
                     CollectionType = CollectionType.BellTV;
                     break;
                 case "SIEHFERNINFO":
                     CollectionType = CollectionType.SiehfernInfo;
                     break;
             }
             break;
         case "Pilot":
             switch (reader.ReadString())
             {
                 case "NotSet":
                     pilot = Pilot.NotSet;
                     break;
                 case "NotDefined":
                     pilot = Pilot.NotDefined;
                     break;
                 case "On":
                     pilot = Pilot.On;
                     break;
                 case "Off":
                     pilot = Pilot.Off;
                     break;
                 default:
                     pilot = Pilot.NotSet;
                     break;
             }
             break;
         case "Rolloff":
             switch (reader.ReadString())
             {
                 case "NotSet":
                     rollOff = RollOff.NotSet;
                     break;
                 case "NotDefined":
                     rollOff = RollOff.NotDefined;
                     break;
                 case "Twenty":
                     rollOff = RollOff.RollOff20;
                     break;
                 case "TwentyFive":
                     rollOff = RollOff.RollOff25;
                     break;
                 case "ThirtyFive":
                     rollOff = RollOff.RollOff35;
                     break;
                 default:
                     rollOff = RollOff.NotSet;
                     break;
             }
             break;
         case "Modulation":
             switch (reader.ReadString())
             {
                 case "ModBPSK":
                     modulation = Modulation.BPSK;
                     break;
                 case "ModOQPSK":
                     modulation = Modulation.OQPSK;
                     break;
                 case "Mod8Psk":
                     modulation = Modulation.PSK8;
                     break;
                 case "Mod1024Qam":
                     modulation = Modulation.QAM1024;
                     break;
                 case "Mod112Qam":
                     modulation = Modulation.QAM112;
                     break;
                 case "Mod128Qam":
                     modulation = Modulation.QAM128;
                     break;
                 case "Mod16Qam":
                     modulation = Modulation.QAM16;
                     break;
                 case "Mod160Qam":
                     modulation = Modulation.QAM160;
                     break;
                 case "Mod192Qam":
                     modulation = Modulation.QAM192;
                     break;
                 case "Mod224Qam":
                     modulation = Modulation.QAM224;
                     break;
                 case "Mod256Qam":
                     modulation = Modulation.QAM256;
                     break;
                 case "Mod32Qam":
                     modulation = Modulation.QAM32;
                     break;
                 case "Mod320Qam":
                     modulation = Modulation.QAM320;
                     break;
                 case "Mod384Qam":
                     modulation = Modulation.QAM384;
                     break;
                 case "Mod448Qam":
                     modulation = Modulation.QAM448;
                     break;
                 case "Mod512Qam":
                     modulation = Modulation.QAM512;
                     break;
                 case "Mod64Qam":
                     modulation = Modulation.QAM64;
                     break;
                 case "Mod640Qam":
                     modulation = Modulation.QAM640;
                     break;
                 case "Mod768Qam":
                     modulation = Modulation.QAM768;
                     break;
                 case "Mod80Qam":
                     modulation = Modulation.QAM80;
                     break;
                 case "Mod896Qam":
                     modulation = Modulation.QAM896;
                     break;
                 case "Mod96Qam":
                     modulation = Modulation.QAM96;
                     break;
                 case "ModQPSK":
                     modulation = Modulation.QPSK;
                     break;
             }
             break;
         case "OpenTVCode":
             OpenTVCode = reader.ReadString();
             break;
         default:
             break;
     }
 }
Example #60
0
 public static void RetrievePilotByExactPoints(IObjectContainer db)
 {
     Pilot proto = new Pilot(null, 100);
     IObjectSet result = db.QueryByExample(proto);
     ListResult(result);
 }