private void comboBox3_SelectionChanged(object sender, SelectionChangedEventArgs e) { if ((sender as System.Windows.Controls.ComboBox).SelectedItem != null && (sender as System.Windows.Controls.ComboBox).SelectedItem.ToString().Equals("Keyboard Shortcut")) { if (Properties.Settings.Default.bottomRightShortcut.Length == 0) { KeyboardShortcutReader reader = new KeyboardShortcutReader(3); label2.Content = Properties.Settings.Default.bottomRightShortcut; } } else if ((sender as System.Windows.Controls.ComboBox).SelectedItem != null && (sender as System.Windows.Controls.ComboBox).SelectedItem.ToString().Equals("Run Program")) { if (Properties.Settings.Default.bottomRightProcess.Length == 0) { ProcessPathReader reader = new ProcessPathReader(3); } label2.Content = Properties.Settings.Default.bottomRightProcess; } else { Properties.Settings.Default.bottomRightShortcut = ""; Properties.Settings.Default.bottomRightProcess = ""; Properties.Settings.Default.Save(); label3.Content = ""; } }