//mapWriteSceneを生成するだけ public MapEditControl(Panel mwp, HScrollBar hScroll, VScrollBar vScroll, Size mapSize, int mapChipSize) { MapDataControl = new MapDataControl(mapSize, mapChipSize); mws = new MapWriteScene(mwp, mapChipSize); mws.UpdateLocalPosEvent += () => MapDataControl.MapShowArea.UpdateShowMapImage(mws); MapWriteScroll = new MapWriteScroll(hScroll, vScroll, mws, mapSize, mapChipSize); MapDataControl. setChangeListEvent( () => MapWriteScroll.SetScrollMaximum(mapSize, mapChipSize)); }
public ConfigForm CreateConfigForm() { //ConfigFormを作成(第二引数は、MapSizeがConfigFormによって変更されるときの処理) return(new ConfigForm( MapDataControl.MapSize, (mapSize) => { MapDataControl.MapSize = mapSize; MapWriteScroll.SetScrollMaximum(MapDataControl.MapSize, MapDataControl.MapChipSize); } )); }
//mwsと共に心中 public void Dispose() { MapWriteScroll.Dispose(); mws.Dispose(); }