private void SetPhoto(List <int> rList) { //不注释才对,但是不注释反应很慢,不知道为什么 if (this.photoList1.InvokeRequired) { SetPhotoCallback p = new SetPhotoCallback(SetPhoto); photoList1.Invoke(p, new object[] { rList }); } else { photoList1.ShowPhoto(rList); } }
private void SetPhoto(List<int> rList) { //不注释才对,但是不注释反应很慢,不知道为什么 if (this.photoList1.InvokeRequired) { SetPhotoCallback p = new SetPhotoCallback(SetPhoto); photoList1.Invoke(p, new object[] { rList }); } else { photoList1.ShowPhoto(rList); } }