/// <summary> /// Starts using a brush of the specified type /// </summary> public void UseBrush( IEditor newBrush ) { if ( m_CurrentBrush != null ) { if ( m_Control != null ) { m_CurrentBrush.UnbindFromControl( m_Control ); } m_CurrentBrush = null; } m_CurrentBrush = newBrush; if ( m_Control != null ) { m_CurrentBrush.BindToControl( m_Control ); } }