public tiles_palette_form(ImageList _tiles_image_list, ContextMenuStrip _cm_tiles, ImageList _blocks_image_list, ContextMenuStrip _cm_blocks, tile_list_manager _tl_cntnr)
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();

            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //
            m_tiles_image_list  = _tiles_image_list;
            m_blocks_image_list = _blocks_image_list;

            m_cm_tiles  = _cm_tiles;
            m_cm_blocks = _cm_blocks;

            m_tile_list  = new tile_list(tile_list.EType.t_Tiles, PanelPaletteTiles, m_tiles_image_list, BtnItemClick, m_cm_tiles, _tl_cntnr);
            m_block_list = new tile_list(tile_list.EType.t_Blocks, PanelPaletteBlocks, m_blocks_image_list, BtnItemClick, m_cm_blocks, _tl_cntnr);

            BtnTilesClick_Event(null, null);
        }
        public imagelist_manager(FlowLayoutPanel _panel_tiles,
                                 EventHandler _tiles_e,
                                 ContextMenuStrip _tiles_cm,
                                 FlowLayoutPanel _panel_blocks,
                                 EventHandler _blocks_e,
                                 ContextMenuStrip _blocks_cm,
                                 ListView _listview_screens,
                                 tile_list_manager _tl_cntnr)
        {
            m_panel_tiles  = _panel_tiles;
            m_panel_blocks = _panel_blocks;

            m_listview_screens = _listview_screens;

            m_imagelist_tiles  = imagelist_init(platform_data.get_max_tiles_cnt(), utils.CONST_TILES_IMG_SIZE);
            m_imagelist_blocks = imagelist_init(platform_data.get_max_blocks_cnt(), utils.CONST_BLOCKS_IMG_SIZE);

            m_tile_list  = new tile_list(tile_list.EType.t_Tiles, m_panel_tiles, m_imagelist_tiles, _tiles_e, _tiles_cm, _tl_cntnr);
            m_block_list = new tile_list(tile_list.EType.t_Blocks, m_panel_blocks, m_imagelist_blocks, _blocks_e, _blocks_cm, _tl_cntnr);

            listview_init_screens();
        }
Beispiel #3
0
 public void register(tile_list _tl)
 {
     m_objs.Add(_tl);
 }