Ejemplo n.º 1
0
        void ControlPanelShowCustomerDetails(object sender,
                                             CustomerEventArgs e)
        {
            CustomerDetailsViewModel customerDetailsViewModel
                = Tools.Cast <CustomerDetailsViewModel>()
                  .FirstOrDefault(
                      detailsViewModel =>
                      detailsViewModel.Customer.CustomerID == e.CustomerID
                      ) ?? GetNewCustomerDetailsViewModel(e.CustomerID);

            SetCurrentTool(customerDetailsViewModel);
        }
 void CustomerControlPanelViewModelShowCustomerDetails(
     object sender, CustomerEventArgs e)
 {
     ShowCustomerDetails(sender, e);
 }
 void CustomerViewModelShowCustomerDetails(
     object sender, CustomerEventArgs e)
 {
     ShowCustomerDetails(this, EventArgs.Empty);
 }