void ReleaseDesignerOutlets() { if (btnBuy != null) { btnBuy.Dispose(); btnBuy = null; } if (btnSell != null) { btnSell.Dispose(); btnSell = null; } if (BuyPrice != null) { BuyPrice.Dispose(); BuyPrice = null; } if (ChangeValueView != null) { ChangeValueView.Dispose(); ChangeValueView = null; } if (NameValue != null) { NameValue.Dispose(); NameValue = null; } if (ResultValue != null) { ResultValue.Dispose(); ResultValue = null; } if (SellPrice != null) { SellPrice.Dispose(); SellPrice = null; } if (UserValue != null) { UserValue.Dispose(); UserValue = null; } }