| | |
| | | public void SetBindingData(long projectId) |
| | | { |
| | | _projectId = projectId; |
| | | var group_list = new BLL.MonitorPointGroup().QueryAll(_projectId); |
| | | var point_list = new BLL.MonitorPoint().QueryExSignalList(_projectId); |
| | | var group_list = new BLL.MonitorPointGroup().GetAll(_projectId); |
| | | var point_list = new BLL.MonitorPoint().GetExSignalList(_projectId); |
| | | this.SetBindingData(group_list, point_list); |
| | | } |
| | | |
| | |
| | | public void SetBindingData(long projectId, string belongType, long belongId) |
| | | { |
| | | _projectId = projectId; |
| | | var group_list = new BLL.MonitorPointGroup().QueryByBelongTypeAndBelongId(_projectId, belongType, belongId); |
| | | var point_list = new BLL.MonitorPoint().QueryExSignalListByBelongTypeAndBelongId(_projectId, belongType, belongId); |
| | | var group_list = new BLL.MonitorPointGroup().GetByBelongTypeAndBelongId(_projectId, belongType, belongId); |
| | | var point_list = new BLL.MonitorPoint().GetExSignalListByBelongTypeAndBelongId(_projectId, belongType, belongId); |
| | | this.SetBindingData(group_list, point_list); |
| | | } |
| | | |
| | |
| | | return; |
| | | if (e.Node.Checked) |
| | | { |
| | | node.Color = QueryColor(); |
| | | node.Color = GetColor(); |
| | | this.SelectedEvent?.Invoke(monitorPoint, node.Color.Value); |
| | | } |
| | | else |
| | |
| | | } |
| | | } |
| | | |
| | | Color QueryColor() |
| | | Color GetColor() |
| | | { |
| | | foreach(var c in _colorArray) |
| | | { |