private void ShowDetailsExecute() { try { EmployeeDetail employeeDetail = new EmployeeDetail(SelectedOrder); employeeDetail.ShowDialog(); OrderList = service.GetOrders(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public EmployeeViewModel(EmployeeView employeeViewOpen) { employeeView = employeeViewOpen; service = new PizzeriaService(); OrderList = service.GetOrders(); }