private void RunStop() { RemoveWindow(this); OnStop(); CNotificationCenter.PostNotification(this, CWindowNotifications.WindowClose, "window", this); }
private void RunStart() { AddWindow(this); OnStart(); CNotificationCenter.PostNotification(this, CWindowNotifications.WindowOpen, "window", this); }
////////////////////////////////////////////////////////////////////////////// #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(); } }
void OnDestroy() { RunStop(); CNotificationCenter.UnregisterNotifications(this); }