protected override void cleanupBeforeExit() { Helper.Events.Input.ButtonPressed -= this.Input_ButtonPressed; Taskbar = null; Children.Clear(); base.cleanupBeforeExit(); }
/// <summary> /// Replaces <see cref="Taskbar"/> with some new <see cref="Interface.Taskbar"/> /// </summary> private void AddTaskbar(Taskbar taskbar = null) { Taskbar = taskbar ?? new Taskbar(); }