コード例 #1
0
 public void RegisterTweakable(ITweakable tweakable)
 {
     if (tweakable.Manager != null && tweakable.Manager != this)
     {
         tweakable.Manager.UnregisterTweakable(tweakable);
     }
     tweakable.Manager = this;
     baseManager.RegisterObject(tweakable);
 }
コード例 #2
0
 public void RegisterInvokable(IInvokable invokable)
 {
     if (invokable.Manager != null && invokable.Manager != this)
     {
         invokable.Manager.UnregisterInvokable(invokable);
     }
     invokable.Manager = this;
     baseManager.RegisterObject(invokable);
 }