public void Paste(CUserEntity user, int dstResid) { if (_currentUser == null || _currentUser.Usr_Id != user.Usr_Id) { throw new Exception("无法粘贴其他用户选择的资源!"); } if (_clipMode == ClipMode.NONE || _resources.Count == 0) { throw new Exception("剪贴板中没有资源。"); } foreach (int res in _resources) { if (_clipMode == ClipMode.COPYMODE) { _currentUser.CopyResource(res, dstResid); } else { _currentUser.CutResource(res, dstResid); } } }