c# - listbox bound to a Specialized.StringDictionary does not update -


I have listStorageLocations - it is linked to the listed BindingSource, which is called list storage binding source. This is BindingSource My Settings In StringDictionary is bound to the collection of items. Default. The storage locks list box's data source is set to the binding resource. I can not take anything to appear in this blasted list box for my life (unless I specifically add test items).

Here's some code:

Form Start:

  Listestation. Displaymilk = "key"; ListStorageLocations.ValueMember = "Value"; ListStorageLocationsBindingSource.DataSource = Settings.default.stationation; ListStorageLocations.DataSource = listStorageLocationsBindingSource; If (settings. Default.options == free space) settings. Default. Storage space = new string field ();  

Button logic to add a new storage space:

  Private zeros btnAddStorageLocation_Click (Object Sender, EventArgs e) {if (! TxtStorageLocation.Text.Equals ("") & Amp; amp;! (TxtStorageLocationName.Text.Equals ("") & amp;! (Storage Layout Configurations Text) & amp;! (Storage SpaceCompaniesName (txtStorageLocationName.Text)) {Settings. DefaultStatusBinding (wrong);}  

I have my hand 78 Dig I'm caught on an angle with an eyebrow, jumping through 7 flaming hoops, and have not taken any advantage over my head. Do I miss some of my stupid expansions?

Oh, I too The default. Save () is okay, just to get some interval value in my string division - but definitely - that does not work because when I restart the app - no items Are there.

Well, I thought it, string extensible class serialization is not eligible, so my settings are not saved from settings Default. Save () - so I'm going in the wrong direction with it. The data is going to be stored separately.


Comments