资 源 简 介
翻译 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];