Monthly Archives: June 2021

How to tabulate ranked voting in C#

New York City’s recent election used a ranked voting ballot. This example shows how you might find the winner in a ranked voting election. What Is Ranked Voting? In ranked voting (aka ranked-choice voting or preferential voting), each voter ranks … Continue reading

Posted in algorithms | Tagged , , , , , , | Comments Off on How to tabulate ranked voting in C#

Select rectangular areas in an image in WPF and C#

This is another fine example of WPF’s unofficial slogan: Twice as flexible and only five times as hard. Practically everything about this example is harder than it is in Windows forms: drawing the rectangle, selecting the area, saving the results … Continue reading

Posted in graphics, wpf | Tagged , , , , , , , , , , , | Comments Off on Select rectangular areas in an image in WPF and C#