public Preferences(Utilities.IniFile iniFile) { m_iniFile = iniFile; Sensitivity = new IntProperty("global", "Sensitivity", 50); Axis = new IntProperty("global", "Axis", 0); Modifier = new IntProperty("global", "Modifier", 131072); Load(); }
public SelectPackagesPage(Utilities.IniFile packagesIni, List <string> effectFiles) { InitializeComponent(); DataContext = this; foreach (var package in packagesIni.GetSections()) { bool required = packagesIni.GetString(package, "Required") == "1"; bool?enabled = required ? true : (packagesIni.GetString(package, "Enabled") == "1" && effectFiles.Count == 0 ? (bool?)null : false); if (packagesIni.GetValue(package, "EffectFiles", out string[] packageEffectFiles))
public Preferences(Utilities.IniFile iniFile) { m_iniFile = iniFile; RequestedLatency = new IntProperty("Audio", "RequestedLatency", 300); OutputDevice = new StringProperty("Audio", "OutputDevice", "DirectSound"); WaveOutCallback = new StringProperty("Audio", "WaveOutCallback", "Window"); WaveOutDevice = new IntProperty("Audio", "WaveOutDevice", 0); DirectSoundDevice = new StringProperty("Audio", "DirectSoundDevice", "00000000-0000-0000-0000-000000000000"); WasapiOutDevice = new IntProperty("Audio", "WasapiOutDevice", 0); WasapiOutIsEventCallback = new StringProperty("Audio", "WasapiOutIsEventCallback", "False"); WasapiOutExclusiveMode = new StringProperty("Audio", "WasapiOutExclusiveMode", "False"); VideoPlaybackDevice = new IntProperty("Video", "VideoPlaybackDevice", 1); Load(); }
public SelectPackagesDialog(Utilities.IniFile packagesIni) { InitializeComponent(); DataContext = this; foreach (var package in packagesIni.GetSections()) { Items.Add(new EffectPackage { Enabled = packagesIni.GetString(package, "Enabled") == "1", Modifiable = packagesIni.GetString(package, "Required") != "1", PackageName = packagesIni.GetString(package, "PackageName"), PackageDescription = packagesIni.GetString(package, "PackageDescription"), InstallPath = packagesIni.GetString(package, "InstallPath"), TextureInstallPath = packagesIni.GetString(package, "TextureInstallPath"), DownloadUrl = packagesIni.GetString(package, "DownloadUrl"), RepositoryUrl = packagesIni.GetString(package, "RepositoryUrl") }); } }
public Preferences(Utilities.IniFile iniFile) { m_iniFile = iniFile; AudioPlayer = new StringProperty("global", "AudioPlayer", @"winamp\winamp.exe"); VideoPlayer = new StringProperty("global", "VideoPlayer", @"vlc\vlc.exe"); ConfigPath = new StringProperty("global", "ConfigPath", @"cfg\"); KeyPressDelay = new IntProperty("global", "KeyPressDelay", 10); RequestedLatency = new IntProperty("Audio", "RequestedLatency", 300); OutputDevice = new StringProperty("Audio", "OutputDevice", "DirectSound"); WaveOutCallback = new StringProperty("Audio", "WaveOutCallback", "Window"); WaveOutDevice = new IntProperty("Audio", "WaveOutDevice", 0); DirectSoundDevice = new StringProperty("Audio", "DirectSoundDevice", "00000000-0000-0000-0000-000000000000"); WasapiOutDevice = new IntProperty("Audio", "WasapiOutDevice", 0); WasapiOutIsEventCallback = new StringProperty("Audio", "WasapiOutIsEventCallback", "False"); WasapiOutExclusiveMode = new StringProperty("Audio", "WasapiOutExclusiveMode", "False"); Load(); }
public SelectPackagesPage(Utilities.IniFile packagesIni) { InitializeComponent(); DataContext = this; foreach (var package in packagesIni.GetSections()) { bool enabled = packagesIni.GetString(package, "Enabled") == "1"; bool required = packagesIni.GetString(package, "Required") == "1"; Items.Add(new EffectPackage { Enabled = required ? true : enabled ? (bool?)null : false, Modifiable = !required, PackageName = packagesIni.GetString(package, "PackageName"), PackageDescription = packagesIni.GetString(package, "PackageDescription"), InstallPath = packagesIni.GetString(package, "InstallPath"), TextureInstallPath = packagesIni.GetString(package, "TextureInstallPath"), DownloadUrl = packagesIni.GetString(package, "DownloadUrl"), RepositoryUrl = packagesIni.GetString(package, "RepositoryUrl") }); } }