Exemplo n.º 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");
 }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 private void cboxSecondsToUpdate_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     RegKey.Set("SecondsToUpdate", cboxSecondsToUpdate.SelectedIndex);
 }
Exemplo n.º 4
0
 private void cboxSecondsToUpdate_Loaded(object sender, RoutedEventArgs e)
 {
     cboxSecondsToUpdate.SelectedIndex = Convert.ToInt32(RegKey.Get("SecondsToUpdate"));
 }
Exemplo n.º 5
0
 private void cboxServerList_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     RegKey.Set("Server", cboxServerList.SelectedValue);
 }
Exemplo n.º 6
0
 private void cboxSound_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     Sound.StopSound();
     RegKey.Set("Sound", cboxSound.SelectedItem);
 }
Exemplo n.º 7
0
 private void cboxSound_Loaded(object sender, RoutedEventArgs e)
 {
     cboxSound.ItemsSource  = Sound.soundNames;
     cboxSound.SelectedItem = RegKey.Get("Sound");
 }
Exemplo n.º 8
0
 private void sliderVolume_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
 {
     Sound.mediaPlayer.Volume = Convert.ToDouble(sliderVolume.Value);
     RegKey.Set("Volume", sliderVolume.Value);
 }
Exemplo n.º 9
0
        // TRANSLATOR END

        public MainWindow()
        {
            InitializeComponent();
            SetLanguageDictionary();
            RegKey.Load();
        }