Provides a dialog to allow the user to configure and save their PushBullet account settings.
Inheritance: System.Windows.Forms.Form
Exemple #1
0
 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.");
         }
     }
 }
Exemple #2
0
		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.");
				}
			}
		}