mmanela / diffplex

DiffPlex is Netstandard 1.0+ C# library to generate textual diffs.
Apache License 2.0
1.01k stars 185 forks source link

Question about use #40

Closed jaswicki closed 5 years ago

jaswicki commented 5 years ago

I am trying to use the side by side comparison in my project. Currently my project lets the user select 2 GPOs from a list and it presents them in side by side WebBrowser controls. I would then want them to be marked up to show the differences in the 2 policies.

I know this has been around a while but are there any good examples that can be referenced? I am stuck and really don't want to reinvent the wheel if this would do the job.

I have added a reference to the DiffPlex dll but I don't see how to actually get the comparison accomplished.

mmanela commented 5 years ago

Take a look at the WebDiffer sample

Server Side https://github.com/mmanela/diffplex/blob/master/WebDiffer/Controllers/DiffController.cs

Client Side https://github.com/mmanela/diffplex/tree/master/WebDiffer/Views/Diff

jaswicki commented 5 years ago

I can't even get that to run. Are there any Windows Forms examples?

mmanela commented 5 years ago

No, I dont have one today. But the code from the links I showed you can serve as a reference for the apis to call

JamesSkemp commented 4 years ago

So I needed to implement this in a Windows Forms app for my job.

What would be the best way to share the code for a simple Windows Forms application demo? (I haven't written a demo project yet; the implementation for work is pretty specific to our needs, so it wouldn't work well for a demo/example.)

mmanela commented 4 years ago

Ideally it would be a simple sample app that we can include in the repo. Otherwise, we could just author a wiki page