Sexy Time

Only available on StudyMode
  • Download(s) : 54
  • Published : February 28, 2013
Open Document
Text Preview
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 =...
tracking img