示例#1
0
        private void ShowDetailsExecute()
        {
            try
            {
                EmployeeDetail employeeDetail = new EmployeeDetail(SelectedOrder);
                employeeDetail.ShowDialog();

                OrderList = service.GetOrders();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
示例#2
0
 public EmployeeViewModel(EmployeeView employeeViewOpen)
 {
     employeeView = employeeViewOpen;
     service      = new PizzeriaService();
     OrderList    = service.GetOrders();
 }