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