1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-08-15 13:31:41 +02:00

Show the notification in Settings when a checked radio is clicked

This commit is contained in:
2016-04-11 16:47:24 +02:00
parent d29315e78e
commit dfe2e91012
2 changed files with 9 additions and 0 deletions

@@ -126,6 +126,7 @@
this.radioLocCustom.Text = "Custom"; this.radioLocCustom.Text = "Custom";
this.radioLocCustom.UseVisualStyleBackColor = true; this.radioLocCustom.UseVisualStyleBackColor = true;
this.radioLocCustom.CheckedChanged += new System.EventHandler(this.radioLoc_CheckedChanged); this.radioLocCustom.CheckedChanged += new System.EventHandler(this.radioLoc_CheckedChanged);
this.radioLocCustom.Click += new System.EventHandler(this.radioLoc_Click);
// //
// radioLocBR // radioLocBR
// //
@@ -138,6 +139,7 @@
this.radioLocBR.Text = "Bottom Right"; this.radioLocBR.Text = "Bottom Right";
this.radioLocBR.UseVisualStyleBackColor = true; this.radioLocBR.UseVisualStyleBackColor = true;
this.radioLocBR.CheckedChanged += new System.EventHandler(this.radioLoc_CheckedChanged); this.radioLocBR.CheckedChanged += new System.EventHandler(this.radioLoc_CheckedChanged);
this.radioLocBR.Click += new System.EventHandler(this.radioLoc_Click);
// //
// radioLocBL // radioLocBL
// //
@@ -150,6 +152,7 @@
this.radioLocBL.Text = "Bottom Left"; this.radioLocBL.Text = "Bottom Left";
this.radioLocBL.UseVisualStyleBackColor = true; this.radioLocBL.UseVisualStyleBackColor = true;
this.radioLocBL.CheckedChanged += new System.EventHandler(this.radioLoc_CheckedChanged); this.radioLocBL.CheckedChanged += new System.EventHandler(this.radioLoc_CheckedChanged);
this.radioLocBL.Click += new System.EventHandler(this.radioLoc_Click);
// //
// radioLocTR // radioLocTR
// //
@@ -162,6 +165,7 @@
this.radioLocTR.Text = "Top Right"; this.radioLocTR.Text = "Top Right";
this.radioLocTR.UseVisualStyleBackColor = true; this.radioLocTR.UseVisualStyleBackColor = true;
this.radioLocTR.CheckedChanged += new System.EventHandler(this.radioLoc_CheckedChanged); this.radioLocTR.CheckedChanged += new System.EventHandler(this.radioLoc_CheckedChanged);
this.radioLocTR.Click += new System.EventHandler(this.radioLoc_Click);
// //
// radioLocTL // radioLocTL
// //
@@ -174,6 +178,7 @@
this.radioLocTL.Text = "Top Left"; this.radioLocTL.Text = "Top Left";
this.radioLocTL.UseVisualStyleBackColor = true; this.radioLocTL.UseVisualStyleBackColor = true;
this.radioLocTL.CheckedChanged += new System.EventHandler(this.radioLoc_CheckedChanged); this.radioLocTL.CheckedChanged += new System.EventHandler(this.radioLoc_CheckedChanged);
this.radioLocTL.Click += new System.EventHandler(this.radioLoc_Click);
// //
// groupNotificationDuration // groupNotificationDuration
// //

@@ -73,6 +73,10 @@ namespace TweetDick.Core.Other{
notification.ShowNotificationForSettings(false); notification.ShowNotificationForSettings(false);
} }
private void radioLoc_Click(object sender, EventArgs e){
notification.ShowNotificationForSettings(false);
}
private void comboBoxDisplay_SelectedValueChanged(object sender, EventArgs e){ private void comboBoxDisplay_SelectedValueChanged(object sender, EventArgs e){
Config.NotificationDisplay = comboBoxDisplay.SelectedIndex; Config.NotificationDisplay = comboBoxDisplay.SelectedIndex;
notification.ShowNotificationForSettings(false); notification.ShowNotificationForSettings(false);