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

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

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

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

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

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

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

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

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

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

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

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

            if (TagTextField != null)
            {
                TagTextField.Dispose();
                TagTextField = null;
            }
        }
コード例 #2
0
        void ReleaseDesignerOutlets()
        {
            if (AddProductMeasureButton != null)
            {
                AddProductMeasureButton.Dispose();
                AddProductMeasureButton = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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