Beispiel #1
0
        private void InitialiseTextureLists()
        {
            RecentTexturesList = new TextureListPanel
            {
                AllowMultipleHighlighting = false,
                AllowHighlighting         = true,
                Dock       = DockStyle.Fill,
                AutoScroll = true,
                BackColor  = Color.Black,
                EnableDrag = false,
                ImageSize  = 64
            };

            SelectedTexturesList = new TextureListPanel
            {
                AllowMultipleHighlighting = false,
                AllowHighlighting         = true,
                Dock       = DockStyle.Fill,
                AutoScroll = true,
                BackColor  = Color.Black,
                EnableDrag = false,
                ImageSize  = 64
            };

            RecentTexturesList.TextureSelected   += TexturesListTextureSelected;
            SelectedTexturesList.TextureSelected += TexturesListTextureSelected;

            RecentTextureListPanel.Controls.Add(RecentTexturesList);
            SelectedTextureListPanel.Controls.Add(SelectedTexturesList);
        }
 private void InitialiseTextureList()
 {
     _textureList = new TextureListPanel
     {
         AllowMultipleHighlighting = true,
         AllowHighlighting         = true,
         AutoScroll = true,
         BackColor  = Color.Black,
         Dock       = DockStyle.Fill,
         EnableDrag = true,
         ImageSize  = 128,
         Location   = new Point(226, 0),
         Name       = "_textureList",
         Size       = new Size(714, 495),
         TabIndex   = 0
     };
     TextureListPanel.Controls.Add(_textureList);
 }