Exemplo n.º 1
0
        public TextResource GetLabel(string text)
        {
            // TODO find some way to make sure we return singletons

            var label = new TextResource(text);

            _labels.Add(label);

            return(label);
        }
Exemplo n.º 2
0
 public void SetLabelText(string text)
 {
     _labelText    = text.Trim();
     _textResource = _labelProvider.GetLabel(_labelText);
 }