Esempio n. 1
0
    public ifoo GetThemedFoo(String theme)
    {
        if (_lastFoo != null)
        {
            _needsAnIfoo.SomethingIFooCanDealWith -= (sender, e) => _lastFoo.bar();
        }
        ;
        ifoo newFoo = _themedFoos[theme];

        _needsAnIfoo.SomethingIFooCanDealWith += (sender, e) => newFoo.bar();
        _lastFoo = newFoo;
        return(newFoo);
    }
Esempio n. 2
0
 public void RegisterFoo(String themeName, ifoo foo)
 {
     _themedFoos.Add(themeName, foo);
 }