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