Example #1
0
        public override void GetEquipment()
        {
            Devices.Clear();

            Devices.Add(new DummyDevice(Locale.Loc.Instance["LblNoSwitch"]));

            /* ASCOM */
            try {
                foreach (ISwitchHub ascomSwitch in ASCOMInteraction.GetSwitches(profileService))
                {
                    Devices.Add(ascomSwitch);
                }
            } catch (Exception ex) {
                Logger.Error(ex);
            }

            /* PrimaLuceLab EAGLE */
            Devices.Add(new Eagle(profileService));

            /* Pegasus Astro Ultimate Powerbox V2 */
            Devices.Add(new UltimatePowerBoxV2(profileService));

            DetermineSelectedDevice(profileService.ActiveProfile.SwitchSettings.Id);
        }