public Orders(string vinCar_inpt)
 {
     InitializeComponent();
     vinOfselectedCar = vinCar_inpt;
     context          = new CarRentalCenterDBEntities();
     this.DataGridOrders.ItemsSource = (from c in context.FuncOrders1()
                                        where c.VIN == vinOfselectedCar
                                        select c).ToArray();
 }
 void RefreshWindow()
 {
     this.DataGridOrders.ItemsSource = from c in context.FuncOrders1() select c;
 }
 public Orders()
 {
     InitializeComponent();
     context = new CarRentalCenterDBEntities();
     this.DataGridOrders.ItemsSource = context.FuncOrders1();
 }