Delete frmTermsOfUse.cs

This commit is contained in:
MaxXor 2015-01-29 10:00:42 +01:00
parent f3ca379e67
commit 20845083d4
1 changed files with 0 additions and 66 deletions

View File

@ -1,66 +0,0 @@
using System;
using System.Threading;
using System.Windows.Forms;
using xServer.Settings;
namespace xServer.Forms
{
public partial class FrmTermsOfUse : Form
{
private static bool _exit = true;
public FrmTermsOfUse()
{
InitializeComponent();
rtxtContent.Text = Properties.Resources.TermsOfUse;
}
private void FrmTermsOfUse_Load(object sender, EventArgs e)
{
lblToU.Left = (this.Width / 2) - (lblToU.Width / 2);
Thread t = new Thread(Wait20Sec);
t.Start();
}
private void FrmTermsOfUse_FormClosing(object sender, FormClosingEventArgs e)
{
if (e.CloseReason == CloseReason.UserClosing && _exit)
System.Diagnostics.Process.GetCurrentProcess().Kill();
}
private void btnAccept_Click(object sender, EventArgs e)
{
XMLSettings.WriteValue("ShowToU", (!chkDontShowAgain.Checked).ToString());
_exit = false;
this.Close();
}
private void btnDecline_Click(object sender, EventArgs e)
{
System.Diagnostics.Process.GetCurrentProcess().Kill();
}
private void Wait20Sec()
{
for (int i = 19; i >= 0; i--)
{
Thread.Sleep(1000);
try
{
this.Invoke((MethodInvoker)delegate
{
btnAccept.Text = "Accept (" + i + ")";
});
}
catch
{ }
}
this.Invoke((MethodInvoker)delegate
{
btnAccept.Text = "Accept";
btnAccept.Enabled = true;
});
}
}
}