Listview interaction scheme question
-
Being a person who's never needed a listview until now (crappy open file dialog in windows mobile!!!!) What is the best option of interacting with a listview that uses
.CheckBoxes=true;
list view showing files (this is in Windows Mobile 6) This listbox is one that shows a list of offline created files and allows the user to select the ones they wish to upload to their web database. 1) Add an event for when as each item is checked, add it to a dictionary collection so you have an updated view at all times. 2) Let the user check away all the items to their hearts desire, then loop though the itemcollection searching/processing each one that has the propertychecked=true
3) Use delegates to point to diffrent functions in the procrssing script based if the list is long or short. If the number of files in the DirectoryInfo.GetFiles() is long add the "check" event handler else pint it to a loop though function. 4) Some other strategy To me option one is attractive if there will be LOTs of options to select or if I needed to dynamically edit look at the contencts they have selected. (which I don't) I think option two would make the UI interaction faster, but the processing longer as it looks though EVERY option in the list. Which would make it better if the list was always small. The third option sure is "enterpriseish" ;) but most likly be a waste of time to code :/ As to how many offline files the user will have? Beats me I wouldn't think "too" many... The thing is you never know with end users... They might save a years worth of data to upload "at once" for all I know/expect heh... (thus there is a max MB upload)
-Spacix All your skynet questions[^] belong to solved