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