Пример #1
0
 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();
 }