示例#1
0
        private void RunStop()
        {
            RemoveWindow(this);
            OnStop();

            CNotificationCenter.PostNotification(this, CWindowNotifications.WindowClose, "window", this);
        }
示例#2
0
        private void RunStart()
        {
            AddWindow(this);
            OnStart();

            CNotificationCenter.PostNotification(this, CWindowNotifications.WindowOpen, "window", this);
        }
示例#3
0
        //////////////////////////////////////////////////////////////////////////////

        #region IDisposable

        public void Dispose()
        {
            CNotificationCenter.UnregisterNotifications(this);
            CTimerManager.CancelTimers(this);

            OnDispose();

            for (int i = 0; i < m_subviews.Count; ++i)
            {
                m_subviews[i].Dispose();
            }
        }
示例#4
0
        void OnDestroy()
        {
            RunStop();

            CNotificationCenter.UnregisterNotifications(this);
        }