protected override void OnDetached()
 {
     _view.RemoveConstraints(_constraint);
     _entry.RemoveFromSuperview();
     _entry.Dispose();
     _model.Dispose();
     _title.Dispose();
     _picker.Dispose();
 }
Exemplo n.º 2
0
        protected override void OnDetached()
        {
            _view.RemoveConstraints(_constraint);
            _entry.RemoveFromSuperview();
            _entry.Dispose();
            _model.Dispose();
            _title.Dispose();
            _picker.Dispose();

            System.Diagnostics.Debug.WriteLine($"Detached {GetType().Name} from {Element.GetType().FullName}");
        }
Exemplo n.º 3
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         if (_picker != null)
         {
             _picker.Model.Dispose();
             _picker.Model = null;
             _picker.Dispose();
             _picker = null;
         }
     }
 }
Exemplo n.º 4
0
        protected override void Dispose(bool disposing)
        {
            if (schedule != null)
            {
                this.schedule.Dispose();
            }

            this.schedule = null;

            if (scheduleTypePicker != null)
            {
                scheduleTypePicker.Dispose();
                scheduleTypePicker = null;
            }
        }
Exemplo n.º 5
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (textbutton != null)
                {
                    textbutton.TouchUpInside -= ShowPicker;
                    textbutton.Dispose();
                    textbutton = null;
                }

                if (button != null)
                {
                    button.TouchUpInside -= HidePicker;
                    button.Dispose();
                    button = null;
                }

                if (schedule != null)
                {
                    schedule.MonthCellLoaded   -= Schedule_MonthCellLoaded;
                    schedule.AppointmentLoaded -= Schedule_AppointmentLoaded;
                    this.schedule.Dispose();
                    this.schedule = null;
                }

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

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

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

            base.Dispose(disposing);
        }
Exemplo n.º 6
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose(disposing);
     if (disposing)
     {
         if (model != null)
         {
             model.Dispose();
             model = null;
         }
         if (counterPicker != null)
         {
             counterPicker.Dispose();
             counterPicker = null;
         }
     }
 }
Exemplo n.º 7
0
 /// <summary>
 /// Dispose the specified disposing.
 /// </summary>
 /// <returns>The dispose.</returns>
 /// <param name="disposing">If set to <c>true</c> disposing.</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         DummyField.RemoveFromSuperview();
         DummyField?.Dispose();
         DummyField = null;
         _titleLabel?.Dispose();
         _titleLabel = null;
         _model?.Dispose();
         _model = null;
         _picker?.Dispose();
         _picker  = null;
         _command = null;
     }
     base.Dispose(disposing);
 }
Exemplo n.º 8
0
        /// <summary>
        /// Dispose the specified disposing.
        /// </summary>
        /// <returns>The dispose.</returns>
        /// <param name="disposing">If set to <c>true</c> disposing.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                _model.UpdatePickerFromModel -= Model_UpdatePickerFromModel;
                DummyField.RemoveFromSuperview();
                DummyField?.Dispose();
                DummyField = null;
                _Title?.Dispose();
                _Title = null;
                _model?.Dispose();
                _model = null;
                _picker?.Dispose();
                _picker  = null;
                _command = null;
            }

            base.Dispose(disposing);
        }
Exemplo n.º 9
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (schedule != null)
                {
                    this.schedule.Dispose();
                    this.schedule = null;
                }

                if (textbutton != null)
                {
                    textbutton.TouchUpInside -= ShowPicker;
                    textbutton.Dispose();
                    textbutton = null;
                }

                if (button != null)
                {
                    button.TouchUpInside -= HidePicker;
                    button.Dispose();
                    button = null;
                }

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

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

            base.Dispose(disposing);
        }
Exemplo n.º 10
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (schedule != null)
                {
                    schedule.Dispose();
                    schedule = null;
                }

                if (OptionView != null)
                {
                    this.OptionView.RemoveFromSuperview();
                    this.OptionView.Dispose();
                    this.OptionView = null;
                }

                if (buttonScheduleView != null)
                {
                    buttonScheduleView.TouchUpInside -= ShowPicker1;
                    buttonScheduleView.Dispose();
                    buttonScheduleView = null;
                }

                if (doneButton != null)
                {
                    doneButton.TouchUpInside -= HidePicker;
                    doneButton.Dispose();
                    doneButton = null;
                }

                if (rangeslider != null)
                {
                    rangeslider.RangeValueChange -= Slider_RangeValueChange;
                    rangeslider.Dispose();
                    rangeslider = null;
                }

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

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

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

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

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

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

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

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

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

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

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

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

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

            base.Dispose(disposing);
        }