Ejemplo n.º 1
0
        protected void ButtonAdd_Click(object sender, EventArgs e)
        {
            Customer c = new Customer(
                TextBoxFirstName.Text,
                TextBoxLastName.Text,
                int.Parse(TextBoxAge.Text),
                TextBoxZipcode.Text,
                TextBoxPassword.Text);

            Application.Lock();
            theCustomer = (NewCustomer)Application["Customers"];
            theCustomer.AddCustomer(c);
            Application["Customers"] = theCustomer;
            Application.UnLock();

            UpdateCustomerListView();
        }
Ejemplo n.º 2
0
 protected void ButtonUpdate_Click(object sender, EventArgs e)
 {
     theCustomer = (NewCustomer)Application["Customers"];
     UpdateCustomerListView();
 }