예제 #1
0
        public ImagesView()
        {
            InitializeComponent();

            RegisterView(_thumbnailGridView);
            _view = _thumbnailGridView;

            ViewerForm.Theme.ApplyTo(PickDirectoryContextMenu);
        }
예제 #2
0
        private void RegisterView(ThumbnailGridView view)
        {
            view.DragDrop       += GridView_DragDrop;
            view.DragOver       += GridView_DragOver;
            view.DoubleClick    += GridView_DoubleClick;
            view.MouseDown      += GridView_MouseDown;
            view.MouseLeave     += GridView_MouseLeave;
            view.MouseMove      += GridView_MouseMove;
            view.MouseUp        += GridView_MouseUp;
            view.MouseWheel     += GridView_MouseWheel;
            view.KeyDown        += GridView_KeyDown;
            view.KeyUp          += GridView_KeyUp;
            view.Resize         += GridView_Resize;
            view.PreviewKeyDown += GridView_PreviewKeyDown;
            view.GroupLabelControl.MouseDown += GroupLabel_MouseDown;

            Controls.Add(view.GroupLabelControl);
            view.GroupLabelControl.Location = view.Location;
            view.GroupLabelControl.BringToFront();
        }