- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
private void textBox10_TextChanged(object sender, EventArgs e)
{
}
private void button3_Click(object sender, EventArgs e)
{
textfactorname1.Text = "";
textfactorname2.Text = "";
textfactorname3.Text = "";
textfactorname4.Text = "";
textfactorname5.Text = "";
textfactorname6.Text = "";
textfactorname7.Text = "";
textfactorname8.Text = "";
textfactorname9.Text = "";
...
checkBox9.Checked = false;
checkBox10.Checked = false;
}
private void button2_Click_1(object sender, EventArgs e)
{
int n;
try
{
n = Convert.ToInt32(textItera.Text);
}
catch
{
n = 1;
}
string results;
double[] NPVarray = new double[n];
double[] NPVsquares = new double[n];
double NPVmax,NPVmin,NPVmid,disp,standdev,CV,zeropoint,pxy,xxx,yyy;
int lessthanzero, morethanxxx, lessthanyyy;
try
{
for (int i = 0; i < n; i++)
{
string factorname1;
...
string factorname10;
double fixedvalue1;
...
double fixedvalue10;
double midvalue1;
...
double midvalue10;
double minvalue1;
...
double minvalue10;
double maxvalue1;
...
double maxvalue10;
string varname1;
...
string varname10;
if (textfactorname1.Text == "")
{
factorname1 = "What a fuck?";
}
else
{
factorname1 = textfactorname1.Text;
}
if (textfactorname2.Text == "")
{
factorname2 = "What a fuck?";
}
Вот так вот. Лимит в 100 строк не позаоляет показать все прелести.
kipar 21.05.2012 13:51 # +4
А С# ближе к дельфи чем я думал.
absolut 21.05.2012 14:06 # +3
JavaGovno 21.05.2012 15:27 # 0
Lure Of Chaos 21.05.2012 22:44 # 0
guest 22.05.2012 11:16 # 0