OSDN Git Service

pbs.twimg.com の画像URLのフォーマット変更に対応
[opentween/open-tween.git] / OpenTween / UpdateDialog.cs
index bfa9c54..53c49bd 100644 (file)
@@ -25,6 +25,8 @@
 // the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
 // Boston, MA 02110-1301, USA.
 
+#nullable enable
+
 using System;
 using System.Collections.Generic;
 using System.ComponentModel;
@@ -50,6 +52,8 @@ namespace OpenTween
             set => this.TextDetail.Text = value;
         }
 
+        public bool SkipButtonPressed { get; set; } = false;
+
         public UpdateDialog()
         {
             InitializeComponent();
@@ -59,19 +63,15 @@ namespace OpenTween
         }
 
         private void YesButton_Click(object sender, EventArgs e)
-        {
-            this.Close();
-        }
+            => this.Close();
 
         private void NoButton_Click(object sender, EventArgs e)
-        {
-            this.Close();
-        }
+            => this.Close();
 
         private void UpdateDialog_Shown(object sender, EventArgs e)
-        {
-            // デフォルトではテキストが全選択されるため抑制
-            this.TextDetail.SelectionLength = 0;
-        }
+            => this.TextDetail.SelectionLength = 0; // デフォルトではテキストが全選択されるため抑制
+
+        private void SkipButton_Click(object sender, EventArgs e)
+            => this.SkipButtonPressed = true;
     }
 }