public virtual void Enable() { if (Enabled) { return; } Enabled = true; FlushMaterial(); ButtonEnabled?.Invoke(this, this); }
void ReleaseDesignerOutlets() { if (ButtonAddress != null) { ButtonAddress.Dispose(); ButtonAddress = null; } if (ButtonAvailable != null) { ButtonAvailable.Dispose(); ButtonAvailable = null; } if (ButtonEnabled != null) { ButtonEnabled.Dispose(); ButtonEnabled = null; } if (ButtonGetLocation != null) { ButtonGetLocation.Dispose(); ButtonGetLocation = null; } if (LabelAddress != null) { LabelAddress.Dispose(); LabelAddress = null; } if (LabelAvailable != null) { LabelAvailable.Dispose(); LabelAvailable = null; } if (LabelEnabled != null) { LabelEnabled.Dispose(); LabelEnabled = null; } if (LabelLocation != null) { LabelLocation.Dispose(); LabelLocation = null; } }
private void UpdateEnableForNextButton(ButtonEnabled obj) { IsNextButtonEnabled = obj.IsNextButtonEnabled; IsFinishButtonEnabled = obj.IsFinishButtonEnabled; if (IsFinishButtonEnabled) { eventAggregator .GetEvent <PubSubEvent <ButtonEnabled> >() .Unsubscribe(subscriptionToken); } // Run on the UI Thread Application.Current.Dispatcher.Invoke(() => { ((DelegateCommand)FinishCommand).RaiseCanExecuteChanged(); ((DelegateCommand)NextCommand).RaiseCanExecuteChanged(); }); }
/// <summary> /// Initialize a new instance of the AnyButtonSpec class. /// </summary> public ButtonSpecAny() { _visible = true; _enabled = ButtonEnabled.Container; _checked = ButtonCheckState.NotCheckButton; }
/// <summary> /// Resets the Enabled property to its default value. /// </summary> public void ResetEnabled() { Enabled = ButtonEnabled.Container; }
/// <summary> /// Initialize a new instance of the AnyButtonSpec class. /// </summary> public ButtonSpecAny() { _visible = true; _enabled = ButtonEnabled.Container; _checked = ButtonCheckState.NotCheckButton; }