private void OnCustomBindActionControlToAction(object sender, CustomBindEventArgs e)
 {
     if (ModelEditorActions.Contains(e.Action))
     {
         e.Binding = ActionBindingFactory.Instance.Create(e.Action, e.ActionControl);
     }
 }
Esempio n. 2
0
 private void actionControlsSiteController_CustomBindActionControlToAction(object sender, CustomBindEventArgs e)
 {
     if (e.Action is CheckableSimpleAction && e.ActionControl is BarCheckItemCheckableSimpleActionControl)
     {
         e.Binding = new CheckableSimpleActionBinding((CheckableSimpleAction)e.Action, (BarCheckItemCheckableSimpleActionControl)e.ActionControl);
     }
 }