// 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;
namespace OpenTween
{
- public partial class UpdateDialog : Form
+ public partial class UpdateDialog : OTBaseForm
{
public string SummaryText
{
- get { return this.LabelSummary.Text; }
- set { this.LabelSummary.Text = value; }
+ get => this.LabelSummary.Text;
+ set => this.LabelSummary.Text = value;
}
public string DetailsText
{
- get { return this.TextDetail.Text; }
- set { this.TextDetail.Text = value; }
+ get => this.TextDetail.Text;
+ set => this.TextDetail.Text = value;
}
+ public bool SkipButtonPressed { get; set; } = false;
+
public UpdateDialog()
{
InitializeComponent();
}
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;
}
}