public static SeasonHistoryTable Create(SeasonHistory data) { SeasonHistoryTable table = (SeasonHistoryTable)template.Instance(); table.Setup(data); return(table); }
private void Setup(SeasonHistory data) { GetNode <Label>("Season").Text = data.date.ToString(); foreach (string @event in data.events) { AddChild(SmartText.Create(@event)); } }
public void DeleteSeasonHistory(SeasonHistory SeasonHistory) { context.SeasonHistories.Remove(SeasonHistory); }
public void InsertSeasonHistory(SeasonHistory SeasonHistory) { context.SeasonHistories.Add(SeasonHistory); }
public History() { past = new List <SeasonHistory>(); now = null; now = new SeasonHistory(Date.START); }