Ejemplo n.º 1
0
    public static SeasonHistoryTable Create(SeasonHistory data)
    {
        SeasonHistoryTable table = (SeasonHistoryTable)template.Instance();

        table.Setup(data);
        return(table);
    }
Ejemplo n.º 2
0
 private void Setup(SeasonHistory data)
 {
     GetNode <Label>("Season").Text = data.date.ToString();
     foreach (string @event in data.events)
     {
         AddChild(SmartText.Create(@event));
     }
 }
Ejemplo n.º 3
0
 public void DeleteSeasonHistory(SeasonHistory SeasonHistory)
 {
     context.SeasonHistories.Remove(SeasonHistory);
 }
Ejemplo n.º 4
0
 public void InsertSeasonHistory(SeasonHistory SeasonHistory)
 {
     context.SeasonHistories.Add(SeasonHistory);
 }
Ejemplo n.º 5
0
 public History()
 {
     past = new List <SeasonHistory>();
     now  = null;
     now  = new SeasonHistory(Date.START);
 }