Exemple #1
0
        public void Add(string name = "")
        {
            var item = new LayerListBoxItem
            {
                Name   = name,
                Size   = new Size(Width - SystemInformation.VerticalScrollBarWidth, 80),
                Margin = new Padding(0),
                Id     = Count
            };

            item.SelectionChanged    += Item_SelectionChanged;
            item.LayerVisibleChanged += Item_LayerVisibleChanged;

            _flpListBox.Controls.Add(item);
            SelectLayer(item.Id);
            SetupAnchors();
        }
Exemple #2
0
        public LayerListBox()
        {
            InitializeComponent();

            _lastSelected = null;
        }