private void ShowPushBulletDialog() { using (var PbDialog = new ConfigurePushBulletDialog()) { PbDialog.ShowDialog(); if (!PbDialog.Details.IsValid) { tsmEnablePushBullet.Checked = false; Settings.Default.EnablePushbullet = false; Settings.Default.Save(); MessageBox.Show("Disabled PushBullet notifications as your settings are invalid."); } } }
private void ShowPushBulletDialog() { using(var PbDialog = new ConfigurePushBulletDialog()) { PbDialog.ShowDialog(); if(!PbDialog.Details.IsValid) { tsmEnablePushBullet.Checked = false; Settings.Default.EnablePushbullet = false; Settings.Default.Save(); MessageBox.Show("Disabled PushBullet notifications as your settings are invalid."); } } }