private void closeWorkspace(object sender, EventArgs e) { Transfer.Clear(); inputWnd.Close(this); spriteWnd.Close(this); toolBox.IsActive = false; this.PerformLayout(); }