public void Dispose() { if (mDescWindow == null) { return; } Interface.GameUi.GameCanvas.RemoveChild(mDescWindow, false); mDescWindow.Dispose(); }
public void Cleanup() { if (_fitsImagePtr != IntPtr.Zero) { NativeMethods.FitsImageDestroy(_fitsImagePtr); } _ip?.Dispose(); _ip = null; }
public FamilyTieGraph() { this.AutoSize = true; this.SaveBounds = true; this.LockItems = false; ImagePanel eip = new ImagePanel(); isz = new Size(120, eip.BestSize(48, 48).Height); eip.Dispose(); }
/// <summary> /// <see cref="ImagePanel.ImageSelected" /> listener /// </summary> /// <param name="sender">The <see cref="ImagePanel" /></param> /// <param name="e"><see cref="ImageSelectedEventArgs" /> specifying the selection (or -1)</param> private void imagePanel_ImageSelected(object sender, EventArgs e) { // get the selection selectedIndex = ((ImageSelectedEventArgs)e).ImageIndex; // remove the listener imagePanel.ImageSelected -= new EventHandler(imagePanel_ImageSelected); // close the drop-dwon, we are done wfes.CloseDropDown(); imagePanel.Dispose(); imagePanel = null; }
public void Dispose() { EntityWindow.Hide(); Interface.GameUi.GameCanvas.RemoveChild(EntityWindow, false); EntityWindow.Dispose(); }
public void Dispose() { Interface.GameUi?.GameCanvas?.RemoveChild(mDescWindow, false); mDescWindow.Dispose(); }