mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-02-05 23:31:24 +00:00
246f947cba
Fixed: stored windows positions were not checked against current screen bounds, which may have resulted in windows being shown off-screen.
40 lines
932 B
C#
40 lines
932 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace CodeImp.DoomBuilder.Windows
|
|
{
|
|
public partial class UpdateForm : DelayedForm
|
|
{
|
|
public bool IgnoreThisUpdate { get { return ignorethisupdate.Checked; } }
|
|
|
|
public UpdateForm(int remoterev, string changelog)
|
|
{
|
|
InitializeComponent();
|
|
Setup(remoterev, changelog);
|
|
}
|
|
|
|
private void Setup(int remoterev, string changelog)
|
|
{
|
|
this.Text = this.Text.Replace("[rev]", remoterev.ToString());
|
|
this.label.Text = label.Text.Replace("[rev]", remoterev.ToString());
|
|
this.changelog.SelectedRtf = changelog;
|
|
}
|
|
|
|
private void UpdateForm_Shown(object sender, EventArgs e)
|
|
{
|
|
this.changelog.Focus();
|
|
}
|
|
|
|
private void downloadupdate_Click(object sender, EventArgs e)
|
|
{
|
|
this.DialogResult = DialogResult.OK;
|
|
this.Close();
|
|
}
|
|
|
|
private void cancel_Click(object sender, EventArgs e)
|
|
{
|
|
this.DialogResult = DialogResult.Cancel;
|
|
this.Close();
|
|
}
|
|
}
|
|
}
|