Ejemplo n.º 1
0
 public static TripInfoBlock GetInstance(Employee employee, TripDecorator trip)
 {
     if (State == null)
     {
         State = new TripInfoBlock(employee, trip);
     }
     return(State);
 }
Ejemplo n.º 2
0
 public TripInfoBlock(Employee empl, TripDecorator trp)
 {
     employee = empl;
     trip     = trp;
     InitializeComponent();
     TripActions.ItemsSource = actions;
     TripViewer.DataContext  = trip;
     SlotsInfo.ItemsSource   = trip.trip.Slots;
 }