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