public StructuresGUI(List <StructureInfo> structures) { InitializeComponent(); structureBL = new BindingList <StructureInfo>(structures); structureBL.AllowNew = true; structureBL.AllowRemove = true; structureBL.AllowEdit = true; structureBL.ListChanged += (o, x) => { StructureManager.Save(); }; structureGrid.DataSource = structureBL; formatGrid(); }