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

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

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

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

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

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

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

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

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

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

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

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

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

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

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