Beispiel #1
0
        // RealTime GraphView (In f15 branch, only MDS and AIS has RealTime Graph...)
        public GraphView ShowGraphView(ListViewPanel panel, DataListener dataListener)
        {
            GraphView graphView = new GraphView();

            graphView.Interval = 30;

            // graphView.AddDataListener(dataListener);

            var    columnInfoList = dataListener.GetColumnsInfo();
            string deviceKey      = dataListener.DeviceKey;

            foreach (var columnInfo in columnInfoList)
            {
                if (columnInfo.BindingName.ToLower() == "time")
                {
                    continue;
                }

                if (columnInfo.DisplayInChart)
                {
                    graphView.AddLineName(deviceKey, columnInfo.BindingName, columnInfo.Header);
                }
            }

            return(graphView);
        }
Beispiel #2
0
        // Real time graph
        public GraphView ShowGraphView(ListViewPanel panel, DataListener dataListener, bool realTime)
        {
            GraphView graphView = new GraphView(realTime);

            graphView.Interval = 30;
            if (dataListener.DeviceKey == "scada.naidevice")
            {
                graphView.Interval = 60 * 5;
            }
            graphView.AddDataListener(dataListener);

            var    columnInfoList = dataListener.GetColumnsInfo();
            string deviceKey      = dataListener.DeviceKey;

            foreach (var columnInfo in columnInfoList)
            {
                // Time would be deal as a Chart.
                if (columnInfo.BindingName.ToLower() == "time")
                {
                    continue;
                }

                if (columnInfo.DisplayInChart)
                {
                    graphView.AddLineName(deviceKey, columnInfo.BindingName, columnInfo.Header);
                }
            }

            return(graphView);
        }
Beispiel #3
0
        // Real time graph
        public GraphView ShowGraphView(ListViewPanel panel, DataListener dataListener, bool realTime)
        {
            GraphView graphView = new GraphView(realTime);
            graphView.Interval = 30;
            if (dataListener.DeviceKey == "scada.naidevice")
            {
                graphView.Interval = 60 * 5;
            }
            graphView.AddDataListener(dataListener);

            var columnInfoList = dataListener.GetColumnsInfo();
            string deviceKey = dataListener.DeviceKey;

            foreach (var columnInfo in columnInfoList)
            {
                // Time would be deal as a Chart.
                if (columnInfo.BindingName.ToLower() == "time")
                {
                    continue;
                }

                if (columnInfo.DisplayInChart)
                {
                    graphView.AddLineName(deviceKey, columnInfo.BindingName, columnInfo.Header);
                }
            }

            return graphView;
        }