;. SelectedText = Convert.ToString (AG.kolvo_otrab_dnei_m);. SelectedText = Convert.ToString (AG.summa_ot_zakazov);
} void button1_Click (object sender, EventArgs e)
{
{((textBox2.Text == "") | | (textBox4.Text == "") | | (textBox5.Text == "") | | ( textBox6.Text == "") | | (textBox7.Text == "") | | (textBox9.Text == "") | | (textBox10.Text == "") | | (Convert.ToInt32 (textBox4.Text) <= 0) | | (Convert.ToInt32 (textBox6.Text) <= 0))
{. Show ("Поле залишилося порожнім!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
{fio, statys, adress, e_mail; age, tel, kolvo_zakazov_k, kolvo_otrab_dnei_m, summa_ot_zakazov; = textBox2.Text; = textBox3.Text; = Convert.ToInt32 (textBox4.Text); = textBox5. Text; = Convert.ToInt32 (textBox6.Text); _mail = textBox7.Text; _zakazov_k = Convert.ToInt32 (textBox9.Text); _otrab_dnei_m = Convert.ToInt32 (textBox10.Text); _ot_zakazov = Convert.ToInt32 (textBox11.Text) ;
курсовая_ддл.Agents AG = new курсовая_ддл.Agents ();. Activ.Upr.SAG.Add (AG.fio = fio, AG.statys = statys, AG.age = age, AG.adress = adress, AG.tel = tel, AG.e_mail = e_mail, AG.kolvo_zakazov_k = kolvo_zakazov_k, AG.kolvo_otrab_dnei_m = kolvo_otrab_dnei_m, AG.summa_ot_zakazov = summa_ot_zakazov, AGT in Program.Activ.Upr.SAG.List)
{. SpisAgent.listBox1.Items.Add (AGT.fio);
}. Hide ();
}
} {MessageBox.Show ("Помилка введення!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);}
} void Добавленіе_агента_FormClosing (object sender, EventArgs e)
{
}
}
}
Список заказов.cs
using
{partial class Спісок_заказов: Form
{x; ukaz = -1; Спісок_заказов ()
{();
} void button1_Click (object sender, EventArgs e)
{. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Hide ();
} void Спісок_заказов_Load (object sender, EventArgs e)
{. Items.Add (Z.naimenovanie);
}
} void listBox1_SelectedIndexChanged (object sender, EventArgs e)
{index = listBox1.SelectedIndex;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null; . Text = null;. Text = null; (курсовая_ддл.Zakazi Z2 in Program.Activ.Upr.SZ.List)
{(index == Z2.nomer)
{. SelectedText = Convert.ToString (Z2.nomer);. SelectedText = Convert...