Example #1
0
        public DriverHelper(ListView localListView, ListView remoteListView)
        {
            _localListView = localListView;

            _remoteListView = remoteListView;

            _sysIcons = new SystemIconsImageList();

            _sysIcons.SmallImageList.Images.Add("MyDriver", Resources.MyDriver);
            _sysIcons.LargeImageList.Images.Add("MyDriver", Resources.MyDriver);

            _sysIcons.SmallImageList.Images.Add("FileFolder", Resources.FileFolder);
            _sysIcons.LargeImageList.Images.Add("FileFolder", Resources.FileFolder);

            _localListView.SmallImageList = _sysIcons.SmallImageList;
            _localListView.LargeImageList = _sysIcons.LargeImageList;

            _remoteListView.SmallImageList = _sysIcons.SmallImageList;
            _remoteListView.LargeImageList = _sysIcons.LargeImageList;

            this.CustomerChoose = CustomerViewList.详细信息;
        }