} = new VAICOMMessageWrapper(); //used to temporarily stop PTT for VAICOM private ClientStateSingleton() { ShortGUID = ShortGuid.NewGuid(); DcsPlayerRadioInfo = new DCSPlayerRadioInfo(); PlayerCoaltionLocationMetadata = new DCSPlayerSideInfo(); // The following members are not updated due to events. Therefore we need to setup a polling action so that they are // periodically checked. DcsGameGuiLastReceived = 0; DcsExportLastReceived = 0; _timer.Interval = TimeSpan.FromSeconds(1); _timer.Tick += (s, e) => { NotifyPropertyChanged("IsGameConnected"); NotifyPropertyChanged("IsLotATCConnected"); NotifyPropertyChanged("ExternalAWACSModeConnected"); }; _timer.Start(); FixedChannels = new PresetChannelsViewModel[10]; for (int i = 0; i < FixedChannels.Length; i++) { FixedChannels[i] = new PresetChannelsViewModel(new FilePresetChannelsStore(), i + 1); } LastSent = 0; IsConnected = false; ExternalAWACSModelSelected = false; LastSeenName = Settings.GlobalSettingsStore.Instance.GetClientSetting(Settings.GlobalSettingsKeys.LastSeenName).StringValue; }
private ClientStateSingleton() { DcsPlayerRadioInfo = new DCSPlayerRadioInfo(); DcsPlayerSideInfo = new DCSPlayerSideInfo(); DcsGameGuiLastReceived = 0; DcsExportLastReceived = 0; FixedChannels = new PresetChannelsViewModel[10]; for (int i = 0; i < FixedChannels.Length; i++) { FixedChannels[i] = new PresetChannelsViewModel(new FilePresetChannelsStore(), i + 1); } MicrophoneAvailable = true; LastSent = 0; IsConnected = false; InExternalAWACSMode = false; LastSeenName = Settings.SettingsStore.Instance.GetClientSetting(Settings.SettingsKeys.LastSeenName).StringValue; }
private ClientStateSingleton() { DcsPlayerRadioInfo = new DCSPlayerRadioInfo(); DcsPlayerSideInfo = new DCSPlayerSideInfo(); FixedChannels = new PresetChannelsViewModel[10]; for (int i = 0; i < FixedChannels.Length; i++) { FixedChannels[i] = new PresetChannelsViewModel(new FilePresetChannelsStore(), i + 1); } }