Beispiel #1
0
 private void Mult_btn_Click(object sender, EventArgs e)
 {
     CalculatorFunctions.Calculate(calc_resultLbl, "multiply");
 }
Beispiel #2
0
 private void Subtract_btn_Click(object sender, EventArgs e)
 {
     CalculatorFunctions.Calculate(calc_resultLbl, "subtract");
 }
Beispiel #3
0
 private void Equal_btn_Click(object sender, EventArgs e)
 {
     CalculatorFunctions.Calculate(calc_resultLbl, PromptResult.Type, true);
 }
Beispiel #4
0
 private void Add_btn_Click(object sender, EventArgs e)
 {
     // Start retrieving input 2
     CalculatorFunctions.Calculate(calc_resultLbl, "add");
 }
Beispiel #5
0
 private void Perc_btn_Click(object sender, EventArgs e)
 {
     PromptResult.PercentOf = true;
     CalculatorFunctions.Calculate(calc_resultLbl, PromptResult.Type, true);
 }
Beispiel #6
0
 private void Div_btn_Click(object sender, EventArgs e)
 {
     CalculatorFunctions.Calculate(calc_resultLbl, "divide");
 }