示例#1
0
 public void OnContextAttach(IContextWrapper <T> context,
                             IList <IBinding> bindings,
                             IBinder <IContextWrapper <T> > binder)
 {
     bindings.Add(Binder.Side(() => Value).To(Binder.Side(() => context.Value)));
     Attaching?.Invoke(context.Value, binder);
 }
示例#2
0
 public void Attach()
 {
     Attaching?.Invoke();
     Instance = this;
     PanelWidget.PushNode(RootWidget);
     RootWidget.SetFocus();
     UpdateTitle();
     Attached?.Invoke();
 }
示例#3
0
 protected virtual void OnAttaching(EventArgs e)
 {
     Attaching?.Invoke(this, e);
 }