Exemplo n.º 1
0
        void _Object_ObjectChanged(object sender, System.EventArgs e)
        {
            if (IgnoreChanges)
            {
                return;
            }
            PropertyTrack <V> track = GetTrack();

            track.Object = _Object.Object;
            track.Invalidate();
            RebuildComponent();
            SetDirty();
        }
Exemplo n.º 2
0
        void _Component_OptionChanged(object sender, System.EventArgs e)
        {
            if (IgnoreChanges)
            {
                return;
            }
            PropertyTrack <V> track = GetTrack();

            if (_Component.SelectedOption != null)
            {
                track.Component = (Component)_Component.SelectedOption.UserData;
            }
            else
            {
                track.Component = null;
            }
            track.Invalidate();
            RebuildProperties();
            SetDirty();
        }
Exemplo n.º 3
0
        void _Property_OptionChanged(object sender, System.EventArgs e)
        {
            if (IgnoreChanges)
            {
                return;
            }
            PropertyTrack <V> track = GetTrack();

            if (_Property.SelectedOption != null)
            {
                if (track.PropertyName != (string)_Property.SelectedOption.UserData)
                {
                    track.PropertyName = (string)_Property.SelectedOption.UserData;
                    track.Invalidate();
                    RefreshDefaultValue();
                }
            }
            else
            {
                track.PropertyName = null;
            }
            SetDirty();
        }