Пример #1
0
        private void comboBoxLoggingType0_SelectedIndexChanged(object sender, EventArgs e)
        {
#if LOGGING_ON
            switch (comboBoxLoggingType0.SelectedIndex)
            {
            case 0: LoggingType0 = ClientCommonAPI.LoggingType.M_POS; break;

            case 1: LoggingType0 = ClientCommonAPI.LoggingType.M_LOG; break;

            case 2: LoggingType0 = ClientCommonAPI.LoggingType.M_SPD; break;

            case 3: LoggingType0 = ClientCommonAPI.LoggingType.M_ERR; break;

            case 4: LoggingType0 = ClientCommonAPI.LoggingType.A_POS; break;

            case 5: LoggingType0 = ClientCommonAPI.LoggingType.A_LOG; break;

            case 6: LoggingType0 = ClientCommonAPI.LoggingType.A_SPD; break;

            case 7: LoggingType0 = ClientCommonAPI.LoggingType.A_ERR; break;

            default: break;
            }
#endif
        }
Пример #2
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();
        }