public CommandSelectControl(IWindowsFormsEditorService edSvc)
 {
     EdSvc      = edSvc;
     _list      = new ImageListControl();
     _list.Dock = DockStyle.Fill;
     _list.Items.Add(new Command(Resource1._cancel.ToBitmap(), "Delete Map Marker", EnumCommand.Delete));
     _list.Items.Add(new Command(Resource1._newIcon.ToBitmap(), "New Map Marker", EnumCommand.New));
     this.Controls.Add(_list);
     this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
 }
Beispiel #2
0
        public void LoadData()
        {
            HomePageViewModel.Initialization().NextPage();


            if (!HomePageViewModel.Initialization().Waterfall)
            {
                if (HomePageViewModel.Initialization().ImageList.Count > 1)
                {
                    ImageListControl.ScrollIntoView(HomePageViewModel.Initialization().ImageList[0]);
                }
            }
        }
        public ImageSelectControl(IImageList owner, IWindowsFormsEditorService edSvc)
        {
            EdSvc      = edSvc;
            _owner     = owner;
            _list      = new ImageListControl();
            _list.Dock = DockStyle.Fill;
            List <ImageID> images = _owner.ImageList;

            if (images != null)
            {
                for (int i = 0; i < images.Count; i++)
                {
                    _list.Items.Add(images[i]);
                }
            }
            this.Controls.Add(_list);
            this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
        }