1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-25 17:34:06 +02:00

Show the notification in Settings when a checked radio is clicked

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

View File

@ -126,6 +126,7 @@ private void InitializeComponent() {
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 @@ private void InitializeComponent() {
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 @@ private void InitializeComponent() {
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 @@ private void InitializeComponent() {
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 @@ private void InitializeComponent() {
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
// //

View File

@ -73,6 +73,10 @@ private void radioLoc_CheckedChanged(object sender, EventArgs e){
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);