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); }