er, EventArgs e)
{. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;
курсовая_ддл.Zakazi Z = new курсовая_ддл.Zakazi ();. SelectedText = Convert.ToString (Z.nomer);. SelectedText = Convert.ToString (Z.naimenovanie); (курсовая_ддл.Agents Ag in Program.Activ.Upr.SAG.List)
{(Ag.id == Program.Activ.nomer_agenta)
{. SelectedText = Ag.fio;
}
}. SelectedText = Convert.ToString (Z.FIO_zakazchika);. SelectedText = Convert.ToString (Program.Activ.nomer_agenta);. SelectedText = Convert.ToString (Z.FIO_agenta);. SelectedText = В»не оплачено";. SelectedText = Convert.ToString (Z.kol_vo);. SelectedText = Convert.ToString (Z.summa_zakaza);. SelectedText = Convert.ToString (Z.month);
} void button1_Click (object sender, EventArgs e)
{
{((textBox2.Text == "") | | (textBox3.Text == "") | | (textBox4.Text == "") | | ( textBox7.Text == "") | | (textBox8.Text == "") | | (textBox9.Text == "") | | (Convert.ToInt32 (textBox7.Text) <= 0) | | (Convert.ToInt32 (textBox8.Text) <= 0) | | (Convert.ToInt32 (textBox9.Text) <= 0))
{. Show ("Поле залишилося порожнім!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
{
курсовая_ддл.Zakazi Z = new курсовая_ддл.Zakazi (); naimenovanie, FIO_zakazchika, FIO_agenta, oplata; ID_agenta, kol_vo, summa_zakaza, month; = textBox2.Text; _zakazchika = textBox3.Text; _agenta = textBox4 . Text; = Convert.ToInt32 (textBox9.Text); _agenta = Program.Activ.nomer_agenta; = В»не оплачено"; _vo = Convert.ToInt32 (textBox7.Text); _zakaza = Convert.ToInt32 (textBox8.Text); (курсовая_ддл.Agents Ag in Program.Activ.Upr.SAG.List)
{(Program.Activ.nomer_agenta == Ag.id)
{. summa_ot_zakazov + = summa_zakaza;
}
}. Activ.Upr.SZ.Add (Z.naimenovanie = naimenovanie, Z.FIO_zakazchika = FIO_zakazchika, Z.FIO_agenta = FIO_agenta, Z.ID_agenta = ID_agenta, Z.oplata = oplata, Z. nomer, Z.kol_vo = kol_vo, Z.summa_zakaza = ZZ in Program.Activ.Upr.SZ.List)
{. Agentam.listBox1.Items.Add (ZZ.naimenovanie);
{. SpisAgent.listBox1.Items.Add (AGT.fio);
}. Agentam.listBox1.Items.Clear ();. Agentam.m = new int [Program.Activ.Upr.SZ.List.Count]; kolvo = 0; (курсовая_ддл.Zakazi Z2 in Program.Activ.Upr.SZ.List)
{(Z2.ID_agenta == Program.Activ.nomer_agenta)
{. Agentam.listBox1.Items.Add (Z2.naimenovanie);. Agentam.m [kolvo] = Z2.nomer; + +;
}
}. Hide ();