public override void Register(Observable observable) { TemplateState templateState = (TemplateState)observable; base.Register(templateState); foreach (KeyValuePair<String, String> template in templateState.GetTemplates()) { String value = String.Empty; if (!templates.TryGetValue(template.Key, out value)) { LoadTemplate(SalusUtility.BagInfo().Context, template.Key, template.Value); } } }
public virtual void Register(Observable observable) { observable.AddObserver(this); }