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

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

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

            if (ViewModePicker != null)
            {
                ViewModePicker.Dispose();
                ViewModePicker = null;
            }
        }
Пример #2
0
 public override void DidReceiveMemoryWarning()
 {
     Calendar.RemoveFromSuperview();
     HeaderLabel.RemoveFromSuperview();
     TodayButton.RemoveFromSuperview();
     ViewModePicker.RemoveFromSuperview();
     ReleaseDesignerOutlets();
     base.DidReceiveMemoryWarning();
 }
        void ReleaseDesignerOutlets()
        {
            if (BackButton != null)
            {
                BackButton.Dispose();
                BackButton = null;
            }

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

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

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

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

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