void ReleaseDesignerOutlets() { if (TxtName != null) { TxtName.Dispose(); TxtName = null; } if (TxtEndpoint != null) { TxtEndpoint.Dispose(); TxtEndpoint = null; } if (TxtBinding != null) { TxtBinding.Dispose(); TxtBinding = null; } if (TxtIndex != null) { TxtIndex.Dispose(); TxtIndex = null; } if (ChkDefault != null) { ChkDefault.Dispose(); ChkDefault = null; } if (BtnAdd != null) { BtnAdd.Dispose(); BtnAdd = null; } if (BtnClose != null) { BtnClose.Dispose(); BtnClose = null; } }
void ReleaseDesignerOutlets() { if (AttributeTableView != null) { AttributeTableView.Dispose(); AttributeTableView = null; } if (BtnAdd != null) { BtnAdd.Dispose(); BtnAdd = null; } if (BtnAddAttribute != null) { BtnAddAttribute.Dispose(); BtnAddAttribute = null; } if (TxtName != null) { TxtName.Dispose(); TxtName = null; } if (BtnClose != null) { BtnClose.Dispose(); BtnClose = null; } if (BtnRemoveAttribute != null) { BtnRemoveAttribute.Dispose(); BtnRemoveAttribute = null; } if (ChDefault != null) { ChDefault.Dispose(); ChDefault = null; } if (TxtAttributeName != null) { TxtAttributeName.Dispose(); TxtAttributeName = null; } if (TxtFriendlyName != null) { TxtFriendlyName.Dispose(); TxtFriendlyName = null; } if (TxtIndex != null) { TxtIndex.Dispose(); TxtIndex = null; } if (TxtNameFormat != null) { TxtNameFormat.Dispose(); TxtNameFormat = null; } }