예제 #1
0
 public override object Execute(params object[] settings)
 {
     if (settings.Length > 0 && this.CanExecute(settings[0]))
     {
         RadMenuItem parameter = settings[0] as RadMenuItem;
         if (parameter != null)
         {
             if (!parameter.Selected)
             {
                 parameter.Select();
             }
             parameter.ShowChildItems();
             return(base.Execute(settings));
         }
     }
     return(null);
 }
예제 #2
0
 public override object Execute(params object[] settings)
 {
     if (settings.Length > 0 && this.CanExecute(settings[0]))
     {
         RadMenuItem setting = settings[0] as RadMenuItem;
         if (setting != null)
         {
             if (!setting.Selected)
             {
                 setting.Select();
             }
             setting.ShowChildItems();
             return(base.Execute(settings));
         }
     }
     return((object)null);
 }