Exemple #1
0
    public static SeasonHistoryTable Create(SeasonHistory data)
    {
        SeasonHistoryTable table = (SeasonHistoryTable)template.Instance();

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