예제 #1
0
 private void cboxServerList_Loaded(object sender, RoutedEventArgs e)
 {
     LoadServerList();
     cboxServerList.ItemsSource       = serverList;
     cboxServerList.DisplayMemberPath = "ServerName";
     cboxServerList.SelectedValuePath = "ServerId";
     cboxServerList.SelectedValue     = RegKey.Get("Server");
 }
예제 #2
0
        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;
        }
예제 #3
0
 private void cboxSecondsToUpdate_Loaded(object sender, RoutedEventArgs e)
 {
     cboxSecondsToUpdate.SelectedIndex = Convert.ToInt32(RegKey.Get("SecondsToUpdate"));
 }
예제 #4
0
 private void cboxSound_Loaded(object sender, RoutedEventArgs e)
 {
     cboxSound.ItemsSource  = Sound.soundNames;
     cboxSound.SelectedItem = RegKey.Get("Sound");
 }