Skip to content

pamasol/PAM-Calculator

Repository files navigation

PAM-Calculator programmed with Microsoft Visual Studio

Pamasol Willi Mäder AG has specialised in the development and production of solutions for aerosols and spray systems since 1965.

Its Automatiker Lehrlinge (German for “mechatronic apprentices”) go through a 4-year apprenticeship. They get an on the job training by qualified Pamasol employees and go to college one or two days per week.

At Pamasol they work on customer projects as well as on internal training projects. PAM-Calcultator represents the internal object oriented programming project. It pursues the following goals:

The Tutorial

We start with the basics. Nevertheless it is recommended, doing w3schools.com C# tutorial before continuing here.

The application you will create is a calculator with two input fields and one of the four fundamental arithmetic operatins that can be choosen. If someone tries to divide by zero, a fault message pops up:

PAM Calculator Winforms Demo

You will build the same calculator twice. In a first step you will work with the WinForms class library, the second calculator is built with WPF. The single most important difference between WinForms and WPF is the fact that while WinForms is simply a layer on top of the standard Windows controls (e.g. a TextBox), WPF is built from scratch and doesn't rely on standard Windows controls in almost all situations. This might seem like a subtle difference, but it really isn't, which you will definitely notice while doing follwing tutorials:

  1. Calculator Tutorial Winforms

  2. Calculator Tutorial WPF

At the end you will have built your own calculator (*.exe file) that can be executed on every Windows machine. Have fun 🚀

About

Simple calculator programmed with c # and windows forms by trainees of Pamasol.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages