コード例 #1
0
ファイル: WindowManager.cs プロジェクト: allisterb/WolfCurses
        /// <summary>
        ///     Fired when the simulation is closing and needs to clear out any data structures that it created so the program can
        ///     exit cleanly.
        /// </summary>
        public override void Destroy()
        {
            // Windows factory and list of modes in simulation.
            windowFactory.Destroy();
            windowFactory = null;
            lock (windowList)
            {
                windowList.Clear();
            }

            // State factory only references parent Windows type, they are added directly to active Windows so no list of them here.
            formFactory.Destroy();
            formFactory = null;
        }