Beispiel #1
0
 private void Form1_FormClosed(object sender, FormClosedEventArgs e)
 {
     _offerService.Dispose();
     if (SecurityLoader.IsExpiredDate(_expirationDate))
     {
         SecurityLoader.RemoveCurrentApp();
     }
 }
Beispiel #2
0
 private void Form1_Load(object sender, EventArgs e)
 {
     if (SecurityLoader.IsExpiredDate(_expirationDate))
     {
         this.Close();
     }
     ;
     RefreshElements();
 }