I moved a part of the code in Programs.cs to reduce code duplication : Parse/build/eval is done only in Program.cs now and Mainform.cs should not contains any business methods, it should be only View.

It's not as clean at it should be, but the changes are already heavy.