Beispiel #1
0
        /// <summary>
        /// Called when the associated control changes.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="ce">A ComponentChangedEventArgs that contains the event data. </param>
        public override void OnComponentChanged(object sender, System.ComponentModel.Design.ComponentChangedEventArgs ce)
        {
            if (ce == null)
            {
                throw new ArgumentNullException("ce");
            }

            base.OnComponentChanged(sender, ce);

            if (ce.Member.Name == "Value")
            {
                // user has edited Value property make sure the designer knows that
                // this means other properties need serializing
                TimeLabel control = (TimeLabel)this.Component;

                this.RaiseComponentChanged("TimeType", control.TimeType);

                switch (control.Value.TimeType)
                {
                case TimeType.Exact:
                case TimeType.Approximate:
                    this.RaiseComponentChanged("TimeValue", control.TimeValue);
                    break;

                case TimeType.NullIndex:
                    this.RaiseComponentChanged("NullIndex", control.NullIndex);
                    break;
                }
            }
        }
Beispiel #2
0
 public override void OnComponentChanged(object sender, System.ComponentModel.Design.ComponentChangedEventArgs ce)
 {
     base.OnComponentChanged(sender, ce);
     if (ce.Member.Name == "Command")
     {
         PropertyDescriptor persistedCommand = TypeDescriptor.GetProperties(Component)["PersistedCommand"];
         RaiseComponentChanged(persistedCommand, null, ((BocReferenceValue)Component).PersistedCommand);
     }
 }
Beispiel #3
0
        /// <summary>
        /// Called when the associated control changes.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="ce">A ComponentChangedEventArgs that contains the event data.</param>
        public override void OnComponentChanged(object sender, System.ComponentModel.Design.ComponentChangedEventArgs ce)
        {
            base.OnComponentChanged(sender, ce);

            if (ce.Member.Name == "Value")
            {
                GenderInputBoxExtender control = (GenderInputBoxExtender)this.Component;
                this.RaiseComponentChanged("Value", control.Value);
            }
        }
Beispiel #4
0
        /// <summary>
        /// Called when the associated control changes.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="ce">A ComponentChangedEventArgs that contains the event data. </param>
        public override void OnComponentChanged(object sender, System.ComponentModel.Design.ComponentChangedEventArgs ce)
        {
            if (ce == null)
            {
                throw new ArgumentNullException("ce");
            }

            base.OnComponentChanged(sender, ce);

            if (ce.Member.Name == "Value")
            {
                // user has edited Value property make sure the designer knows that
                // this means other properties need serializing
                TimeSpanInputBox control = (TimeSpanInputBox)this.Component;

                this.RaiseComponentChanged("IsAge", control.IsAge);
            }
        }
 public virtual void OnComponentChanged(object sender, System.ComponentModel.Design.ComponentChangedEventArgs ce)
 {
 }
 public override void OnComponentChanged(object sender, System.ComponentModel.Design.ComponentChangedEventArgs ce)
 {
 }