Ejemplo n.º 1
0
    public void setTranslation(string name, Translation translation)
    {
        GridTranslation gridTranslation = new GridTranslation(name, translation);

        gridTranslations.Add(gridTranslation);
        if (name.Equals("main"))
        {
            this.translation = translation;
        }
    }
Ejemplo n.º 2
0
    public Translation getTranslationForGrid(string name)
    {
        GridTranslation gridTranslation = gridTranslations.Find(x => x.getName().Equals(name));

        return(gridTranslation.getTranslation());
    }