Exemplo n.º 1
0
        void ReleaseDesignerOutlets()
        {
            if (TipValueLabel != null)
            {
                TipValueLabel.Dispose();
                TipValueLabel = null;
            }

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

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

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

            if (SubTotalText != null)
            {
                SubTotalText.Dispose();
                SubTotalText = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (ScrollView != null)
            {
                ScrollView.Dispose();
                ScrollView = null;
            }

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

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

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

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

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