public override void Destroy() { if (sfschedule != null) { sfschedule.Dispose(); sfschedule = null; } if (workHour_rangeSlider != null) { workHour_rangeSlider.RangeChanged -= workHour_rangeSlider_RangeChanged; workHour_rangeSlider.Dispose(); workHour_rangeSlider = null; } if (show_Non_Accessible_Block_checkBox != null) { show_Non_Accessible_Block_checkBox.CheckedChange -= show_Non_Accessible_Block_checkBox_CheckedChange; show_Non_Accessible_Block_checkBox.Dispose(); show_Non_Accessible_Block_checkBox = null; } if (show_Blackout_Dates != null) { show_Blackout_Dates.CheckedChange -= show_Blackout_Dates_CheckedChange; show_Blackout_Dates.Dispose(); show_Blackout_Dates = null; } if (show_week_number != null) { show_week_number.CheckedChange -= show_week_number_CheckedChange; show_week_number.Dispose(); show_week_number = null; } base.Destroy(); }
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 (button_scheduleView != null) { button_scheduleView.TouchUpInside -= ShowPicker1; button_scheduleView.Dispose(); button_scheduleView = null; } if (doneButton != null) { doneButton.TouchUpInside -= HidePicker; doneButton.Dispose(); doneButton = null; } if (_rangeslider != null) { _rangeslider.RangeValueChange -= Slider_RangeValueChange; _rangeslider.Dispose(); _rangeslider = null; } } base.Dispose(disposing); }
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); }
public void Dispose() { if (sfschedule != null) { sfschedule.Dispose(); sfschedule = null; } if (propertylayout != null) { propertylayout.Dispose(); propertylayout = null; } if (monthViewLayout != null) { monthViewLayout.Dispose(); monthViewLayout = null; } if (otherviewsLayout != null) { otherviewsLayout.Dispose(); otherviewsLayout = null; } if (workHourRangeSlider != null) { workHourRangeSlider.RangeChanged -= WorkHour_rangeSlider_RangeChanged; workHourRangeSlider.Dispose(); workHourRangeSlider = null; } if (showWeekNumber != null) { showWeekNumber.CheckedChange -= Show_week_number_CheckedChange; showWeekNumber.Dispose(); showWeekNumber = null; } if (workingHoursTxtBlock != null) { workingHoursTxtBlock.Dispose(); workingHoursTxtBlock = null; } if (showNonAccessibleBlockcheckBox != null) { showNonAccessibleBlockcheckBox.CheckedChange -= Show_Non_Accessible_Block_checkBox_CheckedChange; showNonAccessibleBlockcheckBox.Dispose(); showNonAccessibleBlockcheckBox = null; } if (showBlackoutDates != null) { showBlackoutDates.CheckedChange -= Show_Blackout_Dates_CheckedChange; showBlackoutDates.Dispose(); showBlackoutDates = null; } if (monthViewLayout != null) { monthViewLayout.Dispose(); monthViewLayout = null; } }