/// <summary> /// Initializes a new instance of the <see cref="HWMonitorStateObjectLinkAttribute"/> class. /// </summary> /// <param name="name">The StateObject name.</param> public HWMonitorStateObjectLinkAttribute(HWMonitorStateObjectNames name) : base(MyConstellation.Packages.HWMonitor.GetRealName(), name.GetRealName()) { }
/// <summary> /// Initializes a new instance of the <see cref="HWMonitorStateObjectLinkAttribute"/> class. /// </summary> /// <param name="sentinel">The sentinel.</param> /// <param name="name">The StateObject name.</param> /// <param name="type">The StateObject type.</param> public HWMonitorStateObjectLinkAttribute(MyConstellation.Sentinels sentinel, HWMonitorStateObjectNames name, string type) : base(sentinel.GetRealName(), MyConstellation.Packages.HWMonitor.GetRealName(), name.GetRealName(), type) { }
/// <summary> /// Gets the real name of a HWMonitor's StateObject. /// </summary> /// <param name="stateObjectName">The HWMonitor 's StateObject.</param> /// <returns>The real name.</returns> public static string GetRealName(this HWMonitorStateObjectNames stateObjectName) { return(RealNameAttribute.GetRealName <HWMonitorStateObjectNames>(stateObjectName)); }