How thefocusman/caluctor works
Caluctor is a small WPF calculator. A user enters numbers and selects basic or scientific operations in the main window; the window evaluates operations and updates the display. It also supports saved-number memory. The sampled code shows the main window discovering and invoking .NET Math and MathHelper methods, and creating memory panels. The excerpts do not show the XAML layout or application startup wiring, so those links are omitted.
Main entry points: MainWindow.xaml.cs Calculator workflow · MainWindow.xaml Calculator window · MathHelper.cs Scientific operations · OutputFormatAttribute.cs Operation formatting
Components 7
Calculator interface
- Calculator window
MainWindow.xaml - Calculator workflow
MainWindow.xaml.cs
Calculation
- Scientific operations
MathHelper.cs - Operation formatting
OutputFormatAttribute.cs - .NET Math
Memory
- Memory number panel
MemeryNumberPanel.xaml.cs
Other components
- Calculator user
Connections 5
- Calculator user → Calculator window: uses
README.md - Calculator workflow → Scientific operations: discovers and invokes
MainWindow.xaml.cs - Calculator workflow → Operation formatting: reads formats
MainWindow.xaml.cs - Calculator workflow → .NET Math: discovers and invokes
MainWindow.xaml.cs - Calculator workflow → Memory number panel: creates and handles
MainWindow.xaml.cs