protected virtual void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { this.cinemaManager?.Dispose(); } this.disposed = true; this.cinemaManager = null; } }
private void Main(object sender, StartupEventArgs e) { this.cinemaManager = new DigitalCinemaManager(); this.cinemaManager.Closing += CinemaManagerClosing; this.cinemaManager.Run(); }