Esempio n. 1
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (gridCustomers.SelectedRows.Count == 0)
         return;
     var addfrm = new AddOrEditCustomer(_culture, Customers.GetCustomer(gridCustomers.SelectedRows[0].Cells[0].Value.ToString()));
     if (addfrm.ShowDialog() == DialogResult.OK)
         gridCustomers.DataSource = Customers.GetAllCustomers();
 }
Esempio n. 2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            var addfrm = new AddOrEditCustomer(_culture, null);

            if (addfrm.ShowDialog() == DialogResult.OK)
            {
                gridCustomers.DataSource = Customers.GetAllCustomers();
            }
        }
Esempio n. 3
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (gridCustomers.SelectedRows.Count == 0)
            {
                return;
            }
            var addfrm = new AddOrEditCustomer(_culture, Customers.GetCustomer(gridCustomers.SelectedRows[0].Cells[0].Value.ToString()));

            if (addfrm.ShowDialog() == DialogResult.OK)
            {
                gridCustomers.DataSource = Customers.GetAllCustomers();
            }
        }
Esempio n. 4
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     var addfrm = new AddOrEditCustomer(_culture, null);
     if (addfrm.ShowDialog() == DialogResult.OK)
         gridCustomers.DataSource = Customers.GetAllCustomers();
 }