コード例 #1
0
 public static T FindDescendantByProperty <T>(this GuiToolbarControl ToolbarControl, Func <T, bool> Property = null)
     where T : class
 {
     if (Property == null)
     {
         Property = new Func <T, bool>(t => true);
     }
     return(findDescendantByPropertyTemplate <T>(ToolbarControl.Children, Property));
 }
コード例 #2
0
 public static IEnumerable <T> FindAllByName <T>(this GuiToolbarControl ToolbarControl, string Name)
     where T : class
 {
     return(findAllByNameTemplate <T>(Name, ToolbarControl.FindAllByName));
 }
コード例 #3
0
ファイル: SAPFEExtension.cs プロジェクト: zdmta/openrpa
 public static T FindById <T>(this GuiToolbarControl ToolbarControl, string Id)
     where T : class
 {
     return(findByIdTemplate <T>(Id, ToolbarControl.FindById));
 }
コード例 #4
0
 public static T FindChildByProperty <T>(this GuiToolbarControl ToolbarControl, Func <T, bool> Property = null)
     where T : class
 {
     return(findChildByPropertyTemplate <T>(ToolbarControl.Children, Property));
 }
コード例 #5
0
 public static T FindByNameEx <T>(this GuiToolbarControl ToolbarControl, string Name, int TypeId)
     where T : class
 {
     return(findByNameExTemplate <T>(Name, TypeId, ToolbarControl.FindByNameEx));
 }
コード例 #6
0
 public static IEnumerable <T> FindDescendantsByProperty <T>(this GuiToolbarControl ToolbarControl, Func <T, bool> Property = null)
     where T : class
 {
     return(findDescendantsByPropertyTemplate <T>(ToolbarControl.Children, Property));
 }