예제 #1
0
        void ReleaseDesignerOutlets()
        {
            if (NextWeakCountreLabel != null)
            {
                NextWeakCountreLabel.Dispose();
                NextWeakCountreLabel = null;
            }

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

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

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

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

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

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

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

            if (TomorrowView != null)
            {
                TomorrowView.Dispose();
                TomorrowView = null;
            }
        }
예제 #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.
            NavigationController.NavigationBar.Translucent = false;

            Title = "Главная";

            TodayView.AddGestureRecognizer(new UITapGestureRecognizer(TidayView_TouchUpInside));
            TomorrowView.AddGestureRecognizer(new UITapGestureRecognizer(TomorrowView_TouchUpInside));
            ThisWeakView.AddGestureRecognizer(new UITapGestureRecognizer(ThisWeekView_TouchUpInside));
            NextWeakView.AddGestureRecognizer(new UITapGestureRecognizer(NextWeekView_TouchUpInside));
        }