public async Task <bool> SetValues(string nodeId, Dictionary <string, string> values)
        {
            return(await Task.Run(() =>
            {
                UiNode node = engine.GetUINode(nodeId);
                if (node == null)
                {
                    return false;
                }

                return node.SetValues(values);
            }));
        }
예제 #2
0
        public IActionResult Chart(string id, string autoscroll, string style, string start, string end)
        {
            if (engine == null)
            {
                return(BadRequest());
            }

            UiChartNode node = engine.GetUINode(id) as UiChartNode;

            if (node == null)
            {
                return(new NotFoundResult());
            }

            ViewBag.autoscroll = autoscroll;

            if (style == null)
            {
                style = node.Style;
            }

            ViewBag.style   = style;
            ViewBag.start   = start ?? "0";
            ViewBag.end     = end ?? "0";
            ViewBag.panelId = node.PanelId;

            return(View(node));
        }