private void Refresh(bool fromServer)
        {
            string originalStatus = Status;

            try
            {
                using (WaitCursor w = new WaitCursor())
                {
                    if (fromServer)
                    {
                        Status = "Refreshing from server ...";
                        if (_customerCache.RefreshFromServer())
                        {
                            return;
                        }
                    }
                    int index = lstCustomers.SelectedIndex;
                    Dictionary <string, object> properties = new Dictionary <string, object>();
                    properties.Add(EntityReader <Customer> .GetPropertyName(p => p.CompanyName, false), txtCompanyName.Text);
                    List <Customer> customers = _customerCache.GetEntitiesByProperties(properties, false);
                    lstCustomers.Items.Clear();
                    customers.ForEach(p => lstCustomers.Items.Add(p));
                    if (index < lstCustomers.Items.Count)
                    {
                        lstCustomers.SelectedIndex = index;
                    }
                    else if (lstCustomers.Items.Count > 0)
                    {
                        lstCustomers.SelectedIndex = 0;
                    }
                }
            }
            finally
            {
                if (Status != originalStatus)
                {
                    Status = originalStatus;
                }
            }
        }