采用 Windows 表单的简单计算器
代码说明:
翻译 maninwest@Codeforge作者:Yvan Rodrigues@CodeProject 使用代码 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];
下载说明:请别用迅雷下载,失败请重下,重下不扣分!


