Exemplo n.º 1
0
        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();
     });
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initialize a new instance of the AnyButtonSpec class.
 /// </summary>
 public ButtonSpecAny()
 {
     _visible = true;
     _enabled = ButtonEnabled.Container;
     _checked = ButtonCheckState.NotCheckButton;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Resets the Enabled property to its default value.
 /// </summary>
 public void ResetEnabled()
 {
     Enabled = ButtonEnabled.Container;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initialize a new instance of the AnyButtonSpec class.
 /// </summary>
 public ButtonSpecAny()
 {
     _visible = true;
     _enabled = ButtonEnabled.Container;
     _checked = ButtonCheckState.NotCheckButton;
 }