Пример #1
0
 public void RemoveChildDecorator( Control control, Decorator decorator )
 {
     if ( control != null && decorator != null )
     {
         control.RemoveDecorator( decorator );
         UpdateHierarchyDecoratorData( control );
     }
 }
Пример #2
0
        public DecoratorItem( Decorator target ) : base()
        {
            m_label = new Label();
            m_label.SetWidth( 100.0f, MetricsUnits.Percentage );
            m_label.SetHeight( 16.0f );
            AddChild( m_label );

            SetWidth( 100.0f, MetricsUnits.Percentage );

            Bind( target );
        }
Пример #3
0
 public void Release()
 {
     m_target = null;
 }
Пример #4
0
 public void Bind( Decorator control )
 {
     m_target = control;
     SetName();
 }
Пример #5
0
 void item_BoundDecoratorlSelected( Decorator decorator, int button )
 {
     if ( BoundDecoratorlSelected != null )
     {
         BoundDecoratorlSelected( m_target, decorator, button );
     }
 }
Пример #6
0
 void item_BoundDecoratorlSelected( Control control, Decorator decorator, int button )
 {
     if ( button == 1 )
     {
         RemoveChildDecorator( control, decorator );
     }
     else if ( button == 0 )
     {
         SetInspectorTarget( decorator );
     }
 }