public string GetToolTipContentByTag(ToolTipType toolTipType) { using (var adapter = PersistenceLayer.GetDataAccessAdapter()) { var linqMetaData = new LinqMetaData(adapter); return((from tt in linqMetaData.ToolTip where tt.Tag == toolTipType.ToString() select tt.Content).SingleOrDefault()); } }
/// <summary> /// Sets the type of the tool. Allows the icon to be changed. /// </summary> /// <param name="type">The new type. See the type config.</param> protected virtual void SetType(ToolTipType type) { this.Call("setType", type.ToString().ToLowerInvariant()); }