Sexy Time

Topics: Addition, Aristotle Pages: 11 (676 words) Published: February 28, 2013
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private double valHolder1;
private double valHolder2;
private double tmpValue;
private bool hasDecimal = false;
private bool inputStatus = true;
private string calcFunc;

private void btn9_Click(object sender, EventArgs e)
{
if (inputStatus)
{
txtInput.Text += btn9.Text;
}
else
{
txtInput.Text = btn9.Text;
inputStatus = true;
}
}

private void btn8_Click(object sender, EventArgs e)
{
if (inputStatus)
{
txtInput.Text += btn8.Text;
}
else
{
txtInput.Text = btn8.Text;
inputStatus = true;
}
}

private void btn7_Click(object sender, EventArgs e)
{
if (inputStatus)
{
txtInput.Text += btn7.Text;
}
else
{
txtInput.Text = btn7.Text;
inputStatus = true;
}
}

private void btn6_Click(object sender, EventArgs e)
{
if (inputStatus)
{
txtInput.Text += btn6.Text;
}
else
{
txtInput.Text = btn6.Text;
inputStatus = true;
}
}

private void btn5_Click(object sender, EventArgs e)
{
if (inputStatus)
{
txtInput.Text += btn5.Text;
}
else
{
txtInput.Text = btn5.Text;
inputStatus = true;
}
}

private void btn4_Click(object sender, EventArgs e)
{
if (inputStatus)
{
txtInput.Text += btn4.Text;
}
else
{
txtInput.Text = btn4.Text;
inputStatus = true;
}
}

private void btn3_Click(object sender, EventArgs e)
{
if (inputStatus)
{
txtInput.Text += btn3.Text;
}
else
{
txtInput.Text = btn3.Text;
inputStatus = true;
}
}

private void btn2_Click(object sender, EventArgs e)
{
if (inputStatus)
{
txtInput.Text += btn2.Text;
}
else
{
txtInput.Text = btn2.Text;
inputStatus = true;
}
}

private void btn1_Click(object sender, EventArgs e)
{
if (inputStatus)
{
txtInput.Text += btn1.Text;
}
else
{

txtInput.Text = btn1.Text;

inputStatus = true;
}
}

private void btn0_Click(object sender, EventArgs e)
{

if (inputStatus)
{
if (txtInput.Text.Length >= 1)
{

txtInput.Text += btn0.Text;
}
}
}

private void btnPlus_Click(object sender, EventArgs e) {
if (calcFunc == string.Empty)
{
valHolder1 =...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • Times Changing Essay
  • toy time Essay
  • Time Management Essay
  • Time Travel Essay
  • Unreality of Time Essay
  • Time and Chart Essay
  • Christmas Time Essay
  • Time Magazine Essay

Become a StudyMode Member

Sign Up - It's Free