private void cboxServerList_Loaded(object sender, RoutedEventArgs e) { LoadServerList(); cboxServerList.ItemsSource = serverList; cboxServerList.DisplayMemberPath = "ServerName"; cboxServerList.SelectedValuePath = "ServerId"; cboxServerList.SelectedValue = RegKey.Get("Server"); }
private void sliderVolume_Loaded(object sender, RoutedEventArgs e) { try { sliderVolume.Value = Convert.ToDouble(RegKey.Get("Volume").ToString().Replace(",", ".")); } catch { sliderVolume.Value = Convert.ToDouble(RegKey.Get("Volume").ToString().Replace(".", ",")); } sliderVolume.Minimum = 0.1; }
private void cboxSecondsToUpdate_Loaded(object sender, RoutedEventArgs e) { cboxSecondsToUpdate.SelectedIndex = Convert.ToInt32(RegKey.Get("SecondsToUpdate")); }
private void cboxSound_Loaded(object sender, RoutedEventArgs e) { cboxSound.ItemsSource = Sound.soundNames; cboxSound.SelectedItem = RegKey.Get("Sound"); }