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