示例#1
0
        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());
            }
        }
示例#2
0
 /// <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());
 }