/// <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) { if (_dialog != null) { _dialog.CancelEvent -= OnCancelButtonClicked; _dialog?.Dispose(); _dialog = null; } } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (Control != null) { Control.Click -= OnPickerClick; Control.FocusChange -= OnPickerFocusChange; if (_dialog != null) { _dialog.Hide(); _dialog.Dispose(); _dialog = null; } } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing && !_disposed) { DeviceDisplay.MainDisplayInfoChanged -= DeviceInfoPropertyChanged; _disposed = true; if (_dialog != null) { _dialog.CancelEvent -= OnCancelButtonClicked; _dialog.Hide(); _dialog.Dispose(); _dialog = null; } } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { try { if (Control != null) { this.Control.Click -= OnPickerClick; this.Control.FocusChange -= OnPickerFocusChange; if (_dialog != null) { ///_dialog.Hide(); _dialog.Dispose(); _dialog = null; } } } catch (Exception) { } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (disposing && !_disposed) { if (Forms.IsLollipopOrNewer) { Device.Info.PropertyChanged -= DeviceInfoPropertyChanged; } _disposed = true; if (_dialog != null) { if (Forms.IsLollipopOrNewer) { _dialog.CancelEvent -= OnCancelButtonClicked; } _dialog.Hide(); _dialog.Dispose(); _dialog = null; } } base.Dispose(disposing); }
public void Dispose() { if (calendar != null) { calendar.DrawMonthCell -= Calendar_DrawMonthCell; calendar.Dispose(); calendar = null; } if (viewModetxt != null) { viewModetxt.Dispose(); viewModetxt = null; } if (modeSpinner != null) { modeSpinner.Dispose(); modeSpinner = null; } if (spaceAdder1 != null) { spaceAdder1.Dispose(); spaceAdder1 = null; } if (spaceAdder2 != null) { spaceAdder2.Dispose(); spaceAdder2 = null; } if (minDate != null) { minDate.Dispose(); minDate = null; } if (maxDate != null) { maxDate.Dispose(); maxDate = null; } if (minPick != null) { minPick.Dispose(); minPick = null; } if (maxPick != null) { maxPick.Dispose(); maxPick = null; } if (minDateButton != null) { minDateButton.Dispose(); minDateButton = null; } if (maxDateButton != null) { maxDateButton.Dispose(); maxDateButton = null; } if (mainView != null) { mainView.Dispose(); mainView = null; } if (propertylayout != null) { propertylayout.Dispose(); propertylayout = null; } if (minDatePicker != null) { minDatePicker.Dispose(); minDatePicker = null; } if (maxDatePicker != null) { maxDatePicker.Dispose(); maxDatePicker = null; } if (underMaxSeparatorLayoutParam != null) { underMaxSeparatorLayoutParam.Dispose(); underMaxSeparatorLayoutParam = null; } if (minMaxSeparatorLayoutParam != null) { minMaxSeparatorLayoutParam.Dispose(); minMaxSeparatorLayoutParam = null; } if (dataAdapter != null) { dataAdapter.Dispose(); dataAdapter = null; } if (underMaxSeparator != null) { underMaxSeparator.Dispose(); underMaxSeparator = null; } if (minMaxSeparator != null) { minMaxSeparator.Dispose(); minMaxSeparator = null; } }
public void Dispose() { if (calendar != null) { calendar.DrawMonthCell -= Calendar_DrawMonthCell; calendar.Dispose(); calendar = null; } if (modeSpinner != null) { modeSpinner.Dispose(); modeSpinner = null; } if (dataAdapter != null) { dataAdapter.Dispose(); dataAdapter = null; } if (minPick != null) { minPick.Dispose(); minPick = null; } if (maxPick != null) { maxPick.Dispose(); maxPick = null; } if (mainLayout != null) { mainLayout.Dispose(); mainLayout = null; } if (proprtyOptionsLayout != null) { proprtyOptionsLayout.Dispose(); proprtyOptionsLayout = null; } if (minDatePicker != null) { minDatePicker.Dispose(); minDatePicker = null; } if (maxDatePicker != null) { maxDatePicker.Dispose(); maxDatePicker = null; } if (minDateButton != null) { minDateButton.Dispose(); minDateButton = null; } if (maxDateButton != null) { maxDateButton.Dispose(); maxDateButton = null; } }