void ReleaseDesignerOutlets() { if (LastSentLabel != null) { LastSentLabel.Dispose(); LastSentLabel = null; } if (LatLabel != null) { LatLabel.Dispose(); LatLabel = null; } if (LocationSwitch != null) { LocationSwitch.Dispose(); LocationSwitch = null; } if (LocationTabBar != null) { LocationTabBar.Dispose(); LocationTabBar = null; } if (LonLabel != null) { LonLabel.Dispose(); LonLabel = null; } if (ReportLabel != null) { ReportLabel.Dispose(); ReportLabel = null; } if (VersionLabel != null) { VersionLabel.Dispose(); VersionLabel = null; } }
void ReleaseDesignerOutlets() { if (AddressLabel != null) { AddressLabel.Dispose(); AddressLabel = null; } if (AddressTextfield != null) { AddressTextfield.Dispose(); AddressTextfield = null; } if (CancelButton != null) { CancelButton.Dispose(); CancelButton = null; } if (CityLabel != null) { CityLabel.Dispose(); CityLabel = null; } if (CityTextfield != null) { CityTextfield.Dispose(); CityTextfield = null; } if (LatLabel != null) { LatLabel.Dispose(); LatLabel = null; } if (LatTextfield != null) { LatTextfield.Dispose(); LatTextfield = null; } if (LongLabel != null) { LongLabel.Dispose(); LongLabel = null; } if (LongTextfield != null) { LongTextfield.Dispose(); LongTextfield = null; } if (OkButton != null) { OkButton.Dispose(); OkButton = null; } if (PostalCodeLabel != null) { PostalCodeLabel.Dispose(); PostalCodeLabel = null; } if (PostalCodeTexfield != null) { PostalCodeTexfield.Dispose(); PostalCodeTexfield = null; } if (TitleLabel != null) { TitleLabel.Dispose(); TitleLabel = null; } if (WifiNameLabel != null) { WifiNameLabel.Dispose(); WifiNameLabel = null; } if (WifiNameTextfield != null) { WifiNameTextfield.Dispose(); WifiNameTextfield = null; } }