public SettingsWindow()
{
InitializeComponent();
chbAutoLogon.IsChecked = Settings.Default.AutoLogon;
chbAutoStart.IsChecked = Settings.Default.AutoStart;
chbAlwaysInTray.IsChecked = Settings.Default.AlwaysInTray;
chbMinimalizeToTray.IsChecked = Settings.Default.MinimalizeToTray;
chbPlaySoundWhenNewStatus.IsChecked = Settings.Default.PlaySoundWhenNewStatus;
chbHotKeyEnabled.IsChecked = Settings.Default.HotKeyEnabled;
foreach (var key in availableKeys)
{
HotKeyComboBox.Items.Add(key);
}
HotKeyComboBox.SelectedItem = Settings.Default.HotKey.ToString();
}