Ejemplo n.º 1
0
 public static void RegisterKeyTipsConsumer(IComponentTreeHandler /*RadControl*/ consumer)
 {
     if (consumer.GetType().Name == "RadRibbonBar")
     {
         Current.keyTipsConsumers.Add(consumer);
     }
 }
Ejemplo n.º 2
0
 public static void RegisterKeyTipsConsumer(IComponentTreeHandler consumer)
 {
     for (System.Type type = consumer.GetType(); (object)type != (object)typeof(object); type = type.BaseType)
     {
         if (type.Name == "RadRibbonBar" || type.Name == "RadRibbonBarBackstageView")
         {
             ChordMessageFilter.Current.keyTipsConsumers.Add(consumer);
             break;
         }
     }
 }