This project is a simple calculator application that performs basic arithmetic operations such as addition, subtraction, multiplication, and division. The application is built using C# and Windows Forms.
The purpose of this project is to demonstrate the implementation of basic arithmetic operations in a Windows Forms application, following best practices for code readability, documentation, and testing.
- Clone the repository to your local machine.
- Open the solution file
calculate.sln
in Visual Studio. - Build the solution to restore the necessary packages and compile the code.
- Run the application by pressing
F5
or selectingDebug > Start Debugging
from the menu.
- Enter the first number in the "عدد اول" field.
- Enter the second number in the "عدد دوم" field.
- Click on the desired operation button (
+
,-
,*
,/
) to perform the calculation. - The result will be displayed in a message box.
To run the tests for this project, follow these steps:
- Open the solution file
calculate.sln
in Visual Studio. - Build the solution to restore the necessary packages and compile the code.
- Open the Test Explorer by selecting
Test > Test Explorer
from the menu. - Run all tests by clicking the
Run All
button in the Test Explorer.
Contributions are welcome! If you would like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Make your changes and commit them with descriptive commit messages.
- Push your changes to your forked repository.
- Create a pull request to the main repository.
This project is licensed under the MIT License. See the LICENSE
file for more information.