public void TreeViewData(TreeData SelTreeData) { var goaltype = SelTreeData.Parent.ToEnum <eGOALTYPE>(); var goalInfo = _sys.goals; _SelItem = goalInfo.Get(goaltype, SelTreeData.Name, true); OnEventViewGoalItemChange?.Invoke(this, _SelItem); }
private void OnEventViewGoalItemChange(object sender, GOALITEM e) { SelTreeItem = e; if (e != null) { GoalInfo = $"{e.type}, {e.label}"; LineSel = e.line; HostName = e.hostName; Label = e.label; } else { GoalInfo = string.Empty; LineSel = new eLINE(); HostName = string.Empty; Label = string.Empty; } }