Calculate Project

Project Description

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.

Purpose

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.

Usage Instructions

  1. Clone the repository to your local machine.
  2. Open the solution file calculate.sln in Visual Studio.
  3. Build the solution to restore the necessary packages and compile the code.
  4. Run the application by pressing F5 or selecting Debug > Start Debugging from the menu.

Examples

  1. Enter the first number in the "عدد اول" field.
  2. Enter the second number in the "عدد دوم" field.
  3. Click on the desired operation button (+, -, *, /) to perform the calculation.
  4. The result will be displayed in a message box.

Running Tests

To run the tests for this project, follow these steps:

  1. Open the solution file calculate.sln in Visual Studio.
  2. Build the solution to restore the necessary packages and compile the code.
  3. Open the Test Explorer by selecting Test > Test Explorer from the menu.
  4. Run all tests by clicking the Run All button in the Test Explorer.

Contributing

Contributions are welcome! If you would like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bugfix.
  3. Make your changes and commit them with descriptive commit messages.
  4. Push your changes to your forked repository.
  5. Create a pull request to the main repository.

License

This project is licensed under the MIT License. See the LICENSE file for more information.