How teytra/my_first_calculator works
This is a small C# WinForms calculator. The user enters two integer operands, selects an operation, and requests a result; the form also exposes a clear action. Program starts the form, whose event handlers update the displayed operands and perform arithmetic. The README documents the four operations and clear; sampled code confirms the arithmetic and input behavior. The designer excerpt is incomplete, so links for controls not shown there are based on the documented UI and handler definitions.
Main entry points: Form1.Designer.cs Calculator UI · Program.cs Application entry · Form1.cs Operand entry
Components 7
Application startup
- Application entry
Program.cs
Calculator form
- Calculator UI
Form1.Designer.cs - Operand entry
Form1.cs - Operation selection
Form1.cs - Arithmetic result
Form1.cs - Clear values
Form1.cs
Other components
- Calculator user
Connections 6
- Application entry → Calculator UI: creates and runs
- Calculator user → Calculator UI: uses
- Calculator UI → Operand entry: dispatches digit clicks
- Calculator UI → Operation selection: dispatches operator clicks
- Calculator UI → Arithmetic result: dispatches equals click
- Calculator UI → Clear values: dispatches clear click