예제 #1
0
 protected override void InitializeViews()
 {
     startIcon         = FindViewById <View>(Resource.Id.StartIcon);
     startLabel        = FindViewById <TextView>(Resource.Id.StartLabel);
     startTimeText     = FindViewById <TextView>(Resource.Id.StartTimeText);
     startDotSeparator = FindViewById <View>(Resource.Id.StartDotSeparator);
     startDateText     = FindViewById <TextView>(Resource.Id.StartDateText);
     stopIcon          = FindViewById <View>(Resource.Id.StopIcon);
     stopLabel         = FindViewById <View>(Resource.Id.StopLabel);
     stopTimeText      = FindViewById <TextView>(Resource.Id.StopTimeText);
     stopTimerLabel    = FindViewById <TextView>(Resource.Id.StopTimerLabel);
     stopDotSeparator  = FindViewById <View>(Resource.Id.StopDotSeparator);
     stopDateText      = FindViewById <TextView>(Resource.Id.StopDateText);
     wheel             = FindViewById <View>(Resource.Id.Wheel);
     wheelBackground   = FindViewById <WheelBackgroundView>(Resource.Id.WheelBackground);
     wheelForeground   = FindViewById <WheelForegroundView>(Resource.Id.WheelForeground);
     wheelNumericInput = FindViewById <WheelDurationInput>(Resource.Id.WheelDurationInput);
     toolbar           = FindViewById <Toolbar>(Resource.Id.Toolbar);
 }
예제 #2
0
        protected override void InitializeViews()
        {
            startLabel        = FindViewById <TextView>(Resource.Id.StartLabel);
            startTimeText     = FindViewById <TextView>(Resource.Id.StartTimeText);
            startDateText     = FindViewById <TextView>(Resource.Id.StartDateText);
            stopLabel         = FindViewById <TextView>(Resource.Id.StopLabel);
            stopTimeText      = FindViewById <TextView>(Resource.Id.StopTimeText);
            stopTimerLabel    = FindViewById <TextView>(Resource.Id.StopTimerLabel);
            stopDotSeparator  = FindViewById <View>(Resource.Id.StopDotSeparator);
            stopDateText      = FindViewById <TextView>(Resource.Id.StopDateText);
            wheelForeground   = FindViewById <WheelForegroundView>(Resource.Id.WheelForeground);
            wheelNumericInput = FindViewById <WheelDurationInput>(Resource.Id.WheelDurationInput);
            durationLabel     = FindViewById <TextView>(Resource.Id.DurationLabel);

            startLabel.Text     = Shared.Resources.Start;
            stopLabel.Text      = Shared.Resources.Stop;
            stopTimerLabel.Text = Shared.Resources.StopTimer;
            durationLabel.Text  = Shared.Resources.Duration;

            SetupToolbar(title: Shared.Resources.StartAndStopTime);
        }
예제 #3
0
        void ReleaseDesignerOutlets()
        {
            if (CloseButton != null)
            {
                CloseButton.Dispose();
                CloseButton = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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