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

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