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

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

            try {
                foreach (IRotator rotator in ASCOMInteraction.GetRotators(profileService))
                {
                    Devices.Add(rotator);
                }
            } catch (Exception ex) {
                Logger.Error(ex);
            }

            Devices.Add(new ManualRotator(profileService));

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