コード例 #1
0
 public static Task AddItemsDeletedAsync(this ITableContext tableContext, ItemsDeletedEventHandler <ITableItem> handler)
 {
     return(tableContext.Dispatcher.InvokeAsync(() => tableContext.ItemsDeleted += handler));
 }
コード例 #2
0
 public static Task RemoveItemsDeletedEventHandlerAsync(this ITypeContext typeContext, ItemsDeletedEventHandler <ITypeItem> handler)
 {
     return(typeContext.Dispatcher.InvokeAsync(() => typeContext.ItemsDeleted -= handler));
 }
コード例 #3
0
 public static Task AddItemsDeletedEventHandlerAsync(this IUserContext userContext, ItemsDeletedEventHandler <IUserItem> handler)
 {
     return(userContext.Dispatcher.InvokeAsync(() => userContext.ItemsDeleted += handler));
 }
コード例 #4
0
 public static Task AddTablesDeletedAsync(this ITableCollection tableCollection, ItemsDeletedEventHandler <ITable> handler)
 {
     return(tableCollection.Dispatcher.InvokeAsync(() => tableCollection.TablesDeleted += handler));
 }
コード例 #5
0
 public static Task RemoveTypesDeletedAsync(this ITypeCollection typeCollection, ItemsDeletedEventHandler <IType> handler)
 {
     return(typeCollection.Dispatcher.InvokeAsync(() => typeCollection.TypesDeleted -= handler));
 }
コード例 #6
0
 public static Task RemoveCategoriesDeletedEventHandlerAsync(this IUserCategoryCollection userCategoryCollection, ItemsDeletedEventHandler <IUserCategory> handler)
 {
     return(userCategoryCollection.Dispatcher.InvokeAsync(() => userCategoryCollection.CategoriesDeleted -= handler));
 }
コード例 #7
0
 public static Task AddUsersDeletedEventHandlerAsync(this IUserCollection userCollection, ItemsDeletedEventHandler <IUser> handler)
 {
     return(userCollection.Dispatcher.InvokeAsync(() => userCollection.UsersDeleted += handler));
 }