//For subscribe public MyListViewItem(Int64 typeId, Safir.Dob.Typesystem.EntityId entityId, Safir.Dob.Typesystem.ChannelId channelId, bool upd, bool restart) { this.Text = Safir.Dob.Typesystem.Operations.GetName(typeId); this.typeId = typeId; this.entityId = entityId; this.channelId = channelId; this.upd = upd; this.restartSubscription = restart; string infoStr; if (channelId == null) { if (entityId == null) { infoStr = ""; } else { infoStr = entityId.InstanceId.ToString(); } } else { infoStr = channelId.ToString(); } this.SubItems.Add(infoStr); string subscrStr = ""; bool slash = false; if (upd) { if (slash) { subscrStr += " / "; } subscrStr += "update"; slash = true; } if (restartSubscription) { if (slash) { subscrStr += " / "; } subscrStr += "restart"; slash = true; } this.SubItems.Add(subscrStr); }
public ChannelIdSerializable(Safir.Dob.Typesystem.ChannelId channelId) { m_channelId = channelId.RawValue; m_channelIdStr = channelId.RawString; }
public void setChannelId(Safir.Dob.Typesystem.ChannelId channelId) { channelIdSer = new ChannelIdSerializable(channelId); }