private void CloseApp(object sender, EventArgs e) { ni.Visible = false; Properties.Settings.Default.runOnStartup = (bool)checkBox2.IsChecked; Properties.Settings.Default.runInTray = (bool)checkBox1.IsChecked; Properties.Settings.Default.startMinimized = (bool)checkBox3.IsChecked; Properties.Settings.Default.charmsCornerDisabled = (bool)checkBox4.IsChecked; Properties.Settings.Default.topLeft = (String)comboBox0.SelectedItem; Properties.Settings.Default.topRight = (String)comboBox1.SelectedItem; Properties.Settings.Default.bottomLeft = (String)comboBox2.SelectedItem; Properties.Settings.Default.bottomRight = (String)comboBox3.SelectedItem; Properties.Settings.Default.Save(); if (Properties.Settings.Default.popUpEnabled) { ExitDonate donate = new ExitDonate(); } else { App.Current.Shutdown(); } }