public MainForm() { InitializeComponent(); this.DoubleBuffered = true; layout_editor = new LayoutEditor(); splitContainer1.Panel2.Controls.Add(layout_editor); layout_editor.Dock = DockStyle.Fill; layout_editor.MouseEnter += new EventHandler(pictureBox1_MouseEnter); layout_editor.OnAddRegion += new TextureRegionEventDelegate(layout_editor_OnAddRegion); layout_editor.OnDeleteRegion += new TextureRegionEventDelegate(layout_editor_OnDeleteRegion); layout_editor.OnSelectRegion += new TextureRegionEventDelegate(layout_editor_OnSelectRegion); layout_editor.OnSelectionChange += new LayoutEditor.LayoutEditorEventDelegate(layout_editor_OnSelectionChange); propertyGrid.Validated += new EventHandler(propertyGrid_Validated); }
public UndoRedoState(LayoutEditor owner) { this.owner = owner; regions = new List<UI.TextureRegion>(owner.regions); selected_regions = new List<UI.TextureRegion>(owner.selected_regions); }