void SaveSettings() { ms.Name = textBox1.Text; var md = MonitorsController.Load(); md[mid] = ms; MonitorsController.Save(md); }