internal ControlOperation(object ctrl, MethodInfo m, ControlOperationOrder order) { Order = order; Instance = ctrl; ExecuteMethod = m; }
internal void FindControlOperations(IList <IOperation <ActionContext> > ops, Control ctrl, string methodName, ControlOperationOrder order) { // down-up order foreach (Control child in ctrl.Controls) { FindControlOperations(ops, child, methodName, order); } MethodInfo execMethodInfo = ctrl.GetType().GetMethod( methodName, BindingFlags.Public | BindingFlags.Instance); if (execMethodInfo != null) { ops.Add(new ControlOperation(ctrl, execMethodInfo, order)); } }