private void mSaveAs_Click(object sender, EventArgs e) { dSave.ShowDialog(); if (dSave.FileName.Length == 0) { return; } MarioEditorXML.Save_To_XML(dSave.FileName, Objects); }
private void MainForm_Load(object sender, EventArgs e) { Objects = new List <LevelEditorObject>(); MainImage = ImageGenerator.GetImage(ObjectType.OT_BG_Block); Invalidate(); LoadEditorObjects(); Objects = MarioEditorXML.Load_From_XML("lev1.xml"); SetListIndexToObjects(); }
private void mOpen_Click(object sender, EventArgs e) { dOpen.ShowDialog(); if (dOpen.FileName.Length == 0) { return; } FileName = dOpen.FileName; Objects = MarioEditorXML.Load_From_XML(dOpen.FileName); SetListIndexToObjects(); }
private void mSave_Click(object sender, EventArgs e) { MarioEditorXML.Save_To_XML(FileName, Objects); }