private void ProcessFileDrop(string[] filePaths, bool isMove) { IFileOperation fileOp = new FileOperationG1(); Data.FolderWidgetData data = DataContext as Data.FolderWidgetData; if (data == null) { return; } fileOp.ParentWindow = Window.GetWindow(this); fileOp.Operation = isMove ? FILEOP_CODES.FO_MOVE : FILEOP_CODES.FO_COPY; fileOp.From = filePaths; fileOp.To = new string[1] { data.Path }; fileOp.Flags = FILEOP_FLAGS.FOF_ALLOWUNDO; fileOp.Execute(); }
private void ProcessFileDrop( string[] filePaths, bool isMove ) { IFileOperation fileOp = new FileOperationG1(); Data.FolderWidgetData data = DataContext as Data.FolderWidgetData; if( data == null ) return; fileOp.ParentWindow = Window.GetWindow( this ); fileOp.Operation = isMove ? FILEOP_CODES.FO_MOVE : FILEOP_CODES.FO_COPY; fileOp.From = filePaths; fileOp.To = new string[ 1 ] { data.Path }; fileOp.Flags = FILEOP_FLAGS.FOF_ALLOWUNDO; fileOp.Execute(); }