Esempio n. 1
0
 /// <summary>
 /// Image handling CellSectio registration
 /// </summary>
 /// <param name="factory"></param>
 public static void RegisterMapping( SectionFactory factory )
 {
     factory.RegisterCellSection(
         typeof( System.Drawing.Image ),
         delegate( ISectionHost host, HeaderColumnSection hcs, object item )
         {
             return new CellSectionImage( host, hcs, item );
         }
     );
 }
 /// <summary>
 /// Image handling CellSectio registration
 /// </summary>
 /// <param name="factory"></param>
 public static void RegisterMapping(SectionFactory factory)
 {
     factory.RegisterCellSection(
         typeof(System.Drawing.Image),
         delegate(ISectionHost host, HeaderColumnSection hcs, object item)
     {
         return(new CellSectionImage(host, hcs, item));
     }
         );
 }
Esempio n. 3
0
        public ListControl( SectionFactory sectionFactory )
            : base(sectionFactory)
        {
            InitializeComponent();

            _itemList = new BufferedList();
            _itemList.ListControl = this;
            _selectedItems = new SelectedItemsCollection( this );

            _customiseListSection = SectionFactory.CreateCustomiseListSection( this );
            _listSection = SectionFactory.CreateListSection( this );

            Canvas.Children.Add( _customiseListSection );
            Canvas.Children.Add( _listSection );
        }
        public SectionContainerControl( SectionFactory sectionFactory )
        {
            InitializeComponent();

            SetStyle( ControlStyles.AllPaintingInWmPaint, true );
            SetStyle( ControlStyles.DoubleBuffer, true );
            SetStyle( ControlStyles.ResizeRedraw, true );
            SetStyle( ControlStyles.SupportsTransparentBackColor, true );

            _canvas = CreateCanvas();

            if( sectionFactory == null )
            {
                _sectionFactory = new SectionFactory();
            }
            else
            {
                _sectionFactory = sectionFactory;
            }
        }