// // Nouveau projet // public void New() { // Résolution "standard" mode = 1; cx = 80; cy = 25; // Réinitialisation variables dataMap = new DataMap(); dataImage = new DataImage(); }
public EditMap(Projet prj) { InitializeComponent(); projet = prj; dataMap = prj.MapData; grilleX = pictureMap.Width; grilleY = pictureMap.Height; pictureMap.Image = new Bitmap(grilleX, grilleY); gfx = Graphics.FromImage(pictureMap.Image); UpdateImage(); editZones = new EditZones(prj); Valid = true; foreach (Image img in projet.ImageData.listImg) { listImage.Items.Add(img); } }