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

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

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

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

            if (SkipButton != null)
            {
                SkipButton.Dispose();
                SkipButton = null;
            }
        }
Пример #2
0
        void ReleaseDesignerOutlets()
        {
            if (MainView != null)
            {
                MainView.Dispose();
                MainView = null;
            }

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

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

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

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