public void Dispose() { if (bgPanel != null) { bgPanel.Dispose(); } if (boardWidthField != null) { boardWidthField.Dispose(); } if (boardHeightField != null) { boardHeightField.Dispose(); } if (bombAmountField != null) { bombAmountField.Dispose(); } if (seedField != null) { seedField.Dispose(); } if (cancelBtn != null) { cancelBtn.Dispose(); } if (acceptBtn != null) { acceptBtn.Dispose(); } }
void ReleaseDesignerOutlets() { if (InputField != null) { InputField.Dispose(); InputField = null; } if (OutputLabel != null) { OutputLabel.Dispose(); OutputLabel = null; } }