Ejemplo n.º 1
0
        void item_Click(object sender, EventArgs e)
        {
            MenuItem item = (MenuItem)sender;

            Type  editorType = (Type)item.Tag;
            Label label      = (Label)item.Parent.Tag;
            DesignerPropertyEditor editor = (DesignerPropertyEditor)label.Tag;

            Debug.Check(_selectedObject == editor.SelectedObject);

            FlexibleProperty flexProp = (FlexibleProperty)editor.Property.Property.GetValue(_selectedObject, null);

            flexProp.ChangeEditor(editorType);

            Nodes.Node node = _selectedObject as Nodes.Node;
            if (node != null)
            {
                node.OnPropertyValueChanged(true);
            }

            Events.Event evnt = _selectedObject as Events.Event;
            if (evnt != null)
            {
                evnt.OnPropertyValueChanged(true);
            }

            SelectedObject = _selectedObject;
        }
Ejemplo n.º 2
0
		protected override void CloneProperties(Event newevent)
		{
			base.CloneProperties(newevent);

			newevent.Label= Label;
		}
Ejemplo n.º 3
0
		protected virtual void CloneProperties(Event newevent)
		{
			newevent._blockEvent= _blockEvent;
		}