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 SubStatus : Form { public SubStatus() { InitializeComponent(); } private void lblQuickStart_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (AyaBizUtils.SubscriptionExpirationImminent) { Util.OpenWebURL("http://www.ayanova.com/subscriptionrenewal.htm"); } else { Util.OpenWebURL("http://www.ayanova.com/subscriptionexpired.htm"); } } private void SubStatus_Load(object sender, EventArgs e) { if (AyaBizUtils.SubscriptionExpirationImminent) { lblExpires.Text = "Warning: Your AyaNova update and support subscription will expire on " + AyaBizUtils.ExpiryDate.ToLongDateString(); lblExpires.ForeColor = System.Drawing.Color.Green; } else { lblExpires.Text = "Your AyaNova update and support subscription has expired on " + AyaBizUtils.ExpiryDate.ToLongDateString(); lblExpires.ForeColor = System.Drawing.Color.Red; } } } }