/// <summary> /// Destroy this instance and release all memory /// </summary> public void _Destroy() { if (IsDestroyed) { return; } if (Configuration.Kernel.Debugging) { Core.DebugLog("Destroying " + WindowName); } destroyed = true; if (scrollback1 != null) { scrollback._Destroy(); } if (textbox1 != null) { textbox._Destroy(); } UserList.Clear(); channel = null; _Network = null; this.scrollback1 = null; this.textbox1 = null; //this.Destroy(); this.Dispose(); }
/// <summary> /// Creates a new window /// </summary> public Window() { this.scrollback1 = new global::Client.Scrollback(); this.textbox1 = new global::Client.Graphics.TextBox(); MenuColor = Configuration.CurrentSkin.ColorDefault; textbox1.parent = this; if (textbox1.history == null) { textbox1.history = new List<string>(); } }