Esempio n. 1
0
 private void AboutBox1_Load(object sender, EventArgs e)
 {
     if (Properties.Settings.Default.License != Licensing.CPU())
     {
         textBoxDescription.Text += Environment.NewLine + $"Отсутствует лицензия. Осталось {(Licensing.StartDate().Date.AddDays(7) - DateTime.Today).Days} дней. ";
     }
 }
Esempio n. 2
0
 public static bool CheckLicense(string Cpu)
 {
     if (Properties.Settings.Default.License != Licensing.CPU())
     {
         Program.LicenseFlag = false;
         return(Math.Abs((DateTime.Now - StartDate()).Days) < 7);
     }
     else
     {
         Program.LicenseFlag = true;
         return(true);
     }
 }
Esempio n. 3
0
 private void PictureBox4_Click(object sender, EventArgs e)
 {
     Hide();
     MessageBox.Show($"Для получения лицензии сообщите код {Licensing.CPU()} в службу поддержки");
     Close();
 }