public SetupGuide(IEventBroker eventBroker, IAppConfig config, IFsdManger network, IAfvManager afv) { InitializeComponent(); mConfig = config; mNetworkManager = network; mAfv = afv; mEventBroker = eventBroker; mEventBroker.Register(this); SwitchScreen("Welcome"); }
public SettingsForm(IAppConfig appConfig, IAfvManager audioForVatsim, IEventBroker eventBroker, IFsdManger networkManager, IUserInterface userInterface) { InitializeComponent(); mConfig = appConfig; mAfv = audioForVatsim; mNetworkManager = networkManager; mUserInterface = userInterface; mEventBroker = eventBroker; mEventBroker.Register(this); mDirectInput = new DirectInput(); mPttDevicePollTimer = new Timer { Interval = 50 }; mPttDevicePollTimer.Tick += PttDevicePollTimer_Tick; cbUpdateChannel.BindEnumToCombobox(UpdateChannel.Stable); vhfEqualizer.BindEnumToCombobox(EqualizerPresets.VHFEmulation2); if (mConfig.InputVolumeDb > 72) { mConfig.InputVolumeDb = 72; } if (mConfig.InputVolumeDb < -60) { mConfig.InputVolumeDb = -60; } if (mConfig.Com1Volume > 72) { mConfig.Com1Volume = 72; } if (mConfig.Com1Volume < -60) { mConfig.Com1Volume = -60; } if (mConfig.Com2Volume > 72) { mConfig.Com2Volume = 72; } if (mConfig.Com2Volume < -60) { mConfig.Com2Volume = -60; } GetAudioDevices(); LoadNetworkServers(); }
public AudioConfiguration(ISetup host, IAppConfig config, IAfvManager afv, IEventBroker eventBroker) : base(host, config) { InitializeComponent(); mAfv = afv; mConfig = config; mEventBroker = eventBroker; mEventBroker.Register(this); Host.SetTitle("Audio Configuration"); GetAudioDevices(); audioInputDevice.SelectedItem = mConfig.InputDeviceName; audioOutputDevice.SelectedItem = mConfig.OutputDeviceName; inputVolume.Value = (int)mConfig.InputVolumeDb; }