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();
 }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            var addfrm = new AddOrEditCustomer(_culture, null);

            if (addfrm.ShowDialog() == DialogResult.OK)
            {
                gridCustomers.DataSource = Customers.GetAllCustomers();
            }
        }
        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();
            }
        }
 private void btnAdd_Click(object sender, EventArgs e)
 {
     var addfrm = new AddOrEditCustomer(_culture, null);
     if (addfrm.ShowDialog() == DialogResult.OK)
         gridCustomers.DataSource = Customers.GetAllCustomers();
 }