1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-06 23:34:05 +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.UseVisualStyleBackColor = true;
this.radioLocCustom.CheckedChanged += new System.EventHandler(this.radioLoc_CheckedChanged);
this.radioLocCustom.Click += new System.EventHandler(this.radioLoc_Click);
//
// radioLocBR
//
@ -138,6 +139,7 @@ private void InitializeComponent() {
this.radioLocBR.Text = "Bottom Right";
this.radioLocBR.UseVisualStyleBackColor = true;
this.radioLocBR.CheckedChanged += new System.EventHandler(this.radioLoc_CheckedChanged);
this.radioLocBR.Click += new System.EventHandler(this.radioLoc_Click);
//
// radioLocBL
//
@ -150,6 +152,7 @@ private void InitializeComponent() {
this.radioLocBL.Text = "Bottom Left";
this.radioLocBL.UseVisualStyleBackColor = true;
this.radioLocBL.CheckedChanged += new System.EventHandler(this.radioLoc_CheckedChanged);
this.radioLocBL.Click += new System.EventHandler(this.radioLoc_Click);
//
// radioLocTR
//
@ -162,6 +165,7 @@ private void InitializeComponent() {
this.radioLocTR.Text = "Top Right";
this.radioLocTR.UseVisualStyleBackColor = true;
this.radioLocTR.CheckedChanged += new System.EventHandler(this.radioLoc_CheckedChanged);
this.radioLocTR.Click += new System.EventHandler(this.radioLoc_Click);
//
// radioLocTL
//
@ -174,6 +178,7 @@ private void InitializeComponent() {
this.radioLocTL.Text = "Top Left";
this.radioLocTL.UseVisualStyleBackColor = true;
this.radioLocTL.CheckedChanged += new System.EventHandler(this.radioLoc_CheckedChanged);
this.radioLocTL.Click += new System.EventHandler(this.radioLoc_Click);
//
// groupNotificationDuration
//

View File

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