Ejemplo n.º 1
0
        private void controlActions_OnApprove(object sender, ActionsUserControl.ApproveEventArgs args)
        {
            var valid = args.IsValid = isMustApprove();

            if (valid)
            {
                Calculator.Current.ClearFunctions();

                foreach (var control in _functions)
                {
                    var function = new Function();

                    foreach (var element in control.Elements)
                    {
                        function.AddElement(element.Operator);
                    }

                    Calculator.Current.AddFunction(function);
                }
            }
        }
Ejemplo n.º 2
0
 private void controlActions_OnApprove(object sender, ActionsUserControl.ApproveEventArgs args)
 {
     args.IsValid = approve();
 }