コード例 #1
0
        void ReleaseDesignerOutlets()
        {
            if (AddressBox != null)
            {
                AddressBox.Dispose();
                AddressBox = null;
            }

            if (BPOBox != null)
            {
                BPOBox.Dispose();
                BPOBox = null;
            }

            if (CoBorrowerPopUp != null)
            {
                CoBorrowerPopUp.Dispose();
                CoBorrowerPopUp = null;
            }

            if (CountyBox != null)
            {
                CountyBox.Dispose();
                CountyBox = null;
            }

            if (DefaultRateBox != null)
            {
                DefaultRateBox.Dispose();
                DefaultRateBox = null;
            }

            if (LenderPopUp != null)
            {
                LenderPopUp.Dispose();
                LenderPopUp = null;
            }

            if (LoanRateBox != null)
            {
                LoanRateBox.Dispose();
                LoanRateBox = null;
            }

            if (MonthsToCompletionBox != null)
            {
                MonthsToCompletionBox.Dispose();
                MonthsToCompletionBox = null;
            }

            if (PnLBox != null)
            {
                PnLBox.Dispose();
                PnLBox = null;
            }

            if (PointsBox != null)
            {
                PointsBox.Dispose();
                PointsBox = null;
            }

            if (PurchaseDatePicker != null)
            {
                PurchaseDatePicker.Dispose();
                PurchaseDatePicker = null;
            }

            if (PurchasePriceBox != null)
            {
                PurchasePriceBox.Dispose();
                PurchasePriceBox = null;
            }

            if (RehabCostBox != null)
            {
                RehabCostBox.Dispose();
                RehabCostBox = null;
            }

            if (StateBox != null)
            {
                StateBox.Dispose();
                StateBox = null;
            }

            if (TitleHolderPopUp != null)
            {
                TitleHolderPopUp.Dispose();
                TitleHolderPopUp = null;
            }

            if (TitlePopUp != null)
            {
                TitlePopUp.Dispose();
                TitlePopUp = null;
            }

            if (TownBox != null)
            {
                TownBox.Dispose();
                TownBox = null;
            }

            if (UpdateMessage != null)
            {
                UpdateMessage.Dispose();
                UpdateMessage = null;
            }

            if (ProfitSplit != null)
            {
                ProfitSplit.Dispose();
                ProfitSplit = null;
            }

            if (ProfitSplitBox != null)
            {
                ProfitSplitBox.Dispose();
                ProfitSplitBox = null;
            }

            if (AcquisitionOnlyCheckBox != null)
            {
                AcquisitionOnlyCheckBox.Dispose();
                AcquisitionOnlyCheckBox = null;
            }

            if (InitialLoanPercentBox != null)
            {
                InitialLoanPercentBox.Dispose();
                InitialLoanPercentBox = null;
            }

            if (FullAcquisitionCostCheckBox != null)
            {
                FullAcquisitionCostCheckBox.Dispose();
                FullAcquisitionCostCheckBox = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (AddressBox != null)
            {
                AddressBox.Dispose();
                AddressBox = null;
            }

            if (TownBox != null)
            {
                TownBox.Dispose();
                TownBox = null;
            }

            if (CountyBox != null)
            {
                CountyBox.Dispose();
                CountyBox = null;
            }

            if (StateBox != null)
            {
                StateBox.Dispose();
                StateBox = null;
            }

            if (PurchaseDatePicker != null)
            {
                PurchaseDatePicker.Dispose();
                PurchaseDatePicker = null;
            }

            if (TitleHolderPopUp != null)
            {
                TitleHolderPopUp.Dispose();
                TitleHolderPopUp = null;
            }

            if (CoBorrowerPopUp != null)
            {
                CoBorrowerPopUp.Dispose();
                CoBorrowerPopUp = null;
            }

            if (PurchasePriceBox != null)
            {
                PurchasePriceBox.Dispose();
                PurchasePriceBox = null;
            }

            if (RehabCostBox != null)
            {
                RehabCostBox.Dispose();
                RehabCostBox = null;
            }

            if (BPOBox != null)
            {
                BPOBox.Dispose();
                BPOBox = null;
            }

            if (PnLBox != null)
            {
                PnLBox.Dispose();
                PnLBox = null;
            }

            if (MonthsToCompletionBox != null)
            {
                MonthsToCompletionBox.Dispose();
                MonthsToCompletionBox = null;
            }

            if (UpdateMessage != null)
            {
                UpdateMessage.Dispose();
                UpdateMessage = null;
            }

            if (LenderPopUp != null)
            {
                LenderPopUp.Dispose();
                LenderPopUp = null;
            }

            if (TitlePopUp != null)
            {
                TitlePopUp.Dispose();
                TitlePopUp = null;
            }
        }