private void edit_Click(object sender, RoutedEventArgs e) { var customer = (customer)customerGrid.SelectedItem; ActiveSession.NavigateToSwitchScreen(new UserControlAddCustomer(customer)); //AddCommentPopUp popUp = new AddCommentPopUp(); //if ((bool)popUp.ShowDialog()) //{ // try // { // customer customer = (customer)customerGrid.SelectedItem; // context.Entry<customer>(customer).Entity.comments = popUp.Text; // context.SaveChanges(); // } // catch (Exception ex) // { // Epos.Views.MessageBox.ShowCustom(ex.Message, "Error", "ok"); // } //} }
private void btnAddCustomer_Click(object sender, RoutedEventArgs e) { //CustomerWindow win = new CustomerWindow(); //win.Show(); ActiveSession.NavigateToSwitchScreen(new UserControlAddCustomer()); }
private void btnClose_Click(object sender, RoutedEventArgs e) { ActiveSession.NavigateToSwitchScreen(new UserControlListCustomer()); }