A Simple Calculator in Windows Forms
2016-08-23
0 0 0
no vote
Other
Earn points
Translated by maninwest@Codeforge Author:Yvan Rodrigues@CodeProject
Using the Code
using System; using System.Windows.Forms; namespace RedCell.App.Calculator.Example { public partial class Form1 : Form { private double accumulator = 0; private char lastOperation; public Form1() { InitializeComponent(); } private void Operator_Pressed(object sender, EventArgs e) { // An operator was pressed; perform the last operation and store the new operator. char operation = (sender as Button).Text[0]; if (operation == 'C') { accumulator = 0; } else { double currentValue = double.Parse(Di
c#
windows
计算器
简单
采用
表单
Related Source Codes
No. 186: DX0110- Source code for community propert
0
0
no vote
No. 219: DX0149- Source code for community propert
0
0
no vote
Verification code identification
0
0
no vote
CSV data analysis tool
0
0
no vote
Source code of hospital medical record information
0
0
no vote
No comment