/// <summary> /// Maps the specified key to the specified value in this table. /// </summary> /// <remarks>The key cannot be null.</remarks> /// <param name="key">The Key</param> /// <param name="data">The Value</param> /// <exception cref="ArgumentNullException">If key is null.</exception> public static void PutData(string key, ISendable data) { ITable dataTable = s_table.GetSubTable(key); dataTable.PutString("~TYPE~", data.SmartDashboardType); data.InitTable(dataTable); s_tablesToData.Add(dataTable, data); }
/// <summary> /// Maps the specified key to the specified value in this table. /// </summary> /// <remarks>The key cannot be null.</remarks> /// <param name="key">The key to map the <see cref="ISendable"/> to.</param> /// <param name="data">The <see cref="ISendable"/> to map.</param> public static void PutData(string key, ISendable data) { ITable dataTable = s_table.GetSubTable(key); dataTable.PutString("~TYPE~", data.SmartDashboardType); data.InitTable(dataTable); s_tablesToData.Add(dataTable, data); }