Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     //custlist = CustomerList.GetCustomers();
     custlistalt = CustomerListAlternative.GetCustomers();
        if (custlistalt != null)
        {
        custlistalt.DisplayContact(lstContacts);
        }
 }
Пример #2
0
    protected void btnRemove_Click(object sender, EventArgs e)
    {
        int[] a;
        a = lstContacts.GetSelectedIndices();

        for (int i = 0; i < a.Length; i++)
        {
            custlistalt -= (a[i] - i);
        }

        lstContacts.Items.Clear();
        custlistalt.DisplayContact(lstContacts);
    }