Example #1
0
        public OptionsForm(ClientCommonAPI.IClientHost host,
                           List <ClientCommonAPI.PhysicalLocation> locations,
                           bool showNearestAzmRotation,
                           bool connectToStellarium,
                           int stellariumTcpPort,
                           bool oppositeHorzPositioningDir,
                           ClientCommonAPI.AutoTrack autoTrack,
                           ClientCommonAPI.LoggingState lstate,
                           ClientCommonAPI.LoggingChannel lchannel,
                           ClientCommonAPI.LoggingType ltype0,
                           ClientCommonAPI.LoggingType ltype1,
                           List <int> logData)
        {
            host_                      = host;
            locations_                 = locations;
            nightMode_                 = host.NightMode;
            Latitude                   = host.Latitude;
            Longitude                  = host.Longitude;
            ShowNearestAzmRotation     = showNearestAzmRotation;
            ConnectToStellarium        = connectToStellarium;
            StellariumTcpPort          = stellariumTcpPort;
            OppositeHorzPositioningDir = oppositeHorzPositioningDir;
            AutoTrack                  = autoTrack;
#if LOGGING_ON
            LoggingState   = lstate;
            LoggingChannel = lchannel;
            LoggingType0   = ltype0;
            LoggingType1   = ltype1;
            LogData        = logData;
#endif
            InitializeComponent();
        }
Example #2
0
        private void checkBoxLoggingAZM_CheckedChanged(object sender, EventArgs e)
        {
#if LOGGING_ON
            LoggingChannel = checkBoxLoggingAZM.Checked ? ClientCommonAPI.LoggingChannel.AZM : ClientCommonAPI.LoggingChannel.ALT;
#endif
        }