I have a ListStore - panelStore = new Gtk.ListStore (typeof (Whitemice.ZOGI.Entity)); - used to hole a collection of participants. In the UI the user can search for additional participants in a dialog which then puts the selected participants into the list; all good. But what is the simplest / most efficient way to prevent dups in a ListStore? I don't want to have the same entity added twice, if it is already there I'd prefer to just ignore the operation.
Like - if (!(panelStore.Contains(entity))) panelStore.AppendValues(entity); - but, of course, there is no Contains [or equivalent] method in a ListStore. And the ListStore doesn't seem to care about storing multiple references to an object. Do I need to iterate the contents every time I add an object in order to prevent dups? Or is there some kind of short-cut that I'm missing?
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
