søndag 26. april 2009

simpel variabel creation test, tested how to add somting to memory.

<----------------->
this is a test i did for the EvE beta tool to find out how to creat one of the formulasfor memory calculation
<----------------->

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 box_add_test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
// Variabel deklerasjon for klassen
public int sum1;
private void button1_Click(object sender, EventArgs e)
{
decimal sum1 = new decimal(0.25) - ((new decimal(0.05) * (decimal.Parse(textBox19.Text.Trim()))));
label47.Text = sum1.ToString();
{
decimal sum2 = decimal.Parse(textBox9.Text) + (decimal.Parse(textBox9.Text) * sum1) + (decimal.Parse(textBox9.Text) * decimal.Parse(label48.Text));
textBox39.Text = sum2.ToString();
}
}
private void textBox19_TextChanged(object sender, EventArgs e)
{
}
private void label48_Click(object sender, EventArgs e)
{
}
}
}

Ingen kommentarer:

Legg inn en kommentar