private void ClickeableItemButton_Click(object sender, RoutedEventArgs e)
        {
            var detail = new CustomerDetail(DataProvider, (int)((Button)sender).DataContext);
            bool? ret = ZeroMessageBox.Show(detail, string.Format("Editar cliente {0}", (int)((Button)sender).DataContext));
            if (ret.HasValue && ret.Value)
            {

            }
        }
        private void OpenCustomerEdit(object parameter)
        {
            View = new CustomerDetail {ControlMode = ControlMode.Update};

            Terminal.Instance.Client.ShowDialog(View,null, res =>
            {
                if (res)
                {
                    BusinessContext.Instance.Model.Customers.ApplyCurrentValues(Customer);
                }
                else
                {
                    BusinessContext.Instance.Model.Refresh(System.Data.Objects.RefreshMode.StoreWins, Customer);
                }
            });
        }