Hi, I want the codes for this task in C#.
Part 1: Decimal and Hexadecimal Calculator
In this lab, we will design a calculator to add and subtract decimal or hexadecimal numbers according to the user's choice. If the user checks the "Switch to hexadecimal" box, the calculator will be a hexadecimal calculator; otherwise, it will be a decimal calculator.
In Lab 03, we designed the HexadecimalNumber class to add hexadecimal numbers, so you will use this class in the hexadecimal mode to add two hexadecimal numbers.
Each button from 0 to 9 displays the specified number, and each button from A to F displays the specified letter on the textbox. When the user presses "+" or "-", the textbox becomes empty to enter the second number. When the "=" button is pressed, the result will appear in the richTextBox.
There are also two buttons: "Clear" and "DEL". "Clear" is used to remove one digit from the entered number, and "DEL" is used to remove the entire entered number.
Finally, there is a "Calculations History" button to show the history for all operations that the user did. (Note: you will need to use a List for this purpose.)