Deleting from Multiple Isolated Storages - windows phone 7 -
I currently compile an item and a history compilation are both separate .at files.
The savings and performance work well for both of these different storage, though the problem occurs when I try to delete something from the item, I also want to delete all the items from history ITEMCollection is out where the item items are indexed in the history item I
Update: There may be something like this in the item compilation: History item collection can look like this: So if I remove b (itemIndex 1) then I want to remove both of them in history ItemCollection . I can remove items from items. The compilation is okay, but history throws ITemCollection errors. The error message I am receiving: Parameter Name: Index This fails on this line: In addition, Your code is in more lines - Then the single step. On the one hand, why are you installing data contents in this method? Then why are you setting it twice - and each time for different types of objects. It sounds uncommon - perhaps you can set up a new contact group for global Vododel class globally, whose history and items are in the form of children?
int i = 0; (I = 0; i & lt; = App.ViewModel.historyItemCollection.Count-1; i ++) {If (App.ViewModel.historyItemCollection [i] .VehicleId == (Current as application.App) .hhicleIndex } {App ViewModel.historyItemCollection [i] .remove (i); }} App.ViewModel.VihilitesExclosure [(Current as application.). Falsex] (App as the delete app.). Aflindex);
App.ViewModel.historyItemCollection [i] .remove (i); In this line you actually have both of
itemIndex in
App ViewModelHitItem Collection [(as an application.). Item Index]. Remove ((as an app. App). Item Index;);
refresh item () has an effect on
itemIndex
Comments
Post a Comment