public void SubRXS() { foreach (string tag in RXTags) { string tagInCC = TryGetTagName(tag); if (!tagSub.ContainsKey(tagInCC)) { tagSub[tag] = RXSystem.Sub(tagInCC, this); } } }
/// <summary> /// 在 Runtime 中运行 /// 从 YZXProperties 取得所有关联的变量链接 /// </summary> public void FillTagMap() { if (YZXProperties == null) { return; } try { if (YZXProperties != "") { TagMap = JsonConvert.DeserializeObject <Dictionary <string, CCTag> >(YZXProperties); foreach (CCTag tag in TagMap.Values) { RXSystem.AddTagRx(this, tag); } TagMapConnected?.Invoke(this, new EventArgs()); } }catch (Exception ex) { Console.WriteLine("FillTagMap" + ex.ToString()); } }