stify"> {index = listBox1.SelectedIndex;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null; . Text = null;. Text = null;. Text = null; (курсовая_ддл.Agents AG in Program.Activ.Upr.SAG.List)
{(index == AG.id)
{. SelectedText = Convert.ToString (AG.id);. SelectedText = Convert.ToString (AG.fio);. SelectedText = Convert.ToString (AG.statys);. SelectedText = Convert. ToString (AG.age);. SelectedText = Convert.ToString (AG.adress);. SelectedText = Convert.ToString (AG.tel);. SelectedText = Convert.ToString (AG.e_mail);. SelectedText = Convert.ToString ( AG.kolvo_zakazov_k);. SelectedText = Convert.ToString (AG.kolvo_otrab_dnei_m);. SelectedText = Convert.ToString (AG.summa_ot_zakazov);
}
}. ReadOnly = true;. ReadOnly = true;. ReadOnly = true;. ReadOnly = true;. ReadOnly = true;. ReadOnly = true;. ReadOnly = true;. ReadOnly = true;
} void Спісок_агентов_FormClosing (object sender, FormClosingEventArgs e)
{. Activ.Upr.SaveAgents ("Agents.xml");
} void Спісок_агентов_Load_1 (object sender, EventArgs e)
{. Items.Clear (); (курсовая_ддл.Agents AG in Program.Activ.Upr.SAG.List)
{. Items.Add (AG.fio);. kolvo_zakazov_k = 0;. summa_ot_zakazov = 0; (курсовая_ддл.Zakazi Z in Program.Activ.Upr.SZ.List)
{(Z.ID_agenta == AG.id)
{. kolvo_zakazov_k + +;. summa_ot_zakazov + = Z.summa_zakaza;
}
}
}
} void button5_Click (object sender, EventArgs e)
{. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Text = null;. Hide ();
} void button4_Click_1 (object sender, EventArgs e)
{(radioButton1.Checked)
{
{poisk, lstr; = Convert.ToString (textBox1.Text); (int i = 0; i
{= listBox1.Items [i]. ToString (); (lstr == poisk)
{. SelectedIndex = i;
} (lstr! = poisk)
{+ +; (x == listBox1.Items.Count)
{. Show ("Агент не знайдене.", "Інформація", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
} x = 0;
} {MessageBox.Show ("Помилка введення!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);}
} (radioButton2.Checked)
{
{p; = Convert.ToInt32 (textBox1.Text); (int i = 0; i
{(i == p)