public EventSummaryView(IRosterEvent sarEvent) { this.Id = sarEvent.Id; this.Title = sarEvent.Title; this.Number = sarEvent.StateNumber; this.StartTime = sarEvent.StartTime; }
public void SetEvent(IRosterEvent sarEvent) { // Passing a non-training IRosterEvent here will (and should) throw a cast exception. this.Training = (Training)sarEvent; }
public void SetEvent(IRosterEvent sarEvent) { // Passing a non-mission IRosterEvent here will (and should) throw a cast exception. this.Mission = (Mission)sarEvent; }