This commit is contained in:
40
source/WinFormApp/TrialExpire.cs
Normal file
40
source/WinFormApp/TrialExpire.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
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;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user