41 lines
1.2 KiB
C#
41 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Forms;
|
|
using GZTW.AyaNova.BLL;
|
|
namespace AyaNova
|
|
{
|
|
public partial class TrialExpire : Form
|
|
{
|
|
public TrialExpire()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void lblQuickStart_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
|
|
{
|
|
|
|
Util.OpenWebURL(Util.BaseHelpUrl + "index.html?quickstart_for_beginners.htm");
|
|
// this.Close();
|
|
}
|
|
|
|
private void TrialExpire_Load(object sender, EventArgs e)
|
|
{
|
|
lblExpires.Text = string.Format(Util.LocaleText.GetLocalizedText("Error.License.WillExpire"),"");
|
|
if(AyaBizUtils.WillLockout)
|
|
lblExpiryDate.Text = AyaBizUtils.LockoutDate.ToShortDateString();
|
|
else
|
|
lblExpiryDate.Text = AyaBizUtils.ExpiryDate.ToShortDateString();
|
|
TimeSpan ts = AyaBizUtils.ExpiryDate - DateTime.Now;
|
|
if (ts.TotalDays < 10)
|
|
lblExpiryDate.ForeColor = System.Drawing.Color.Red;
|
|
|
|
|
|
}
|
|
}
|
|
}
|