private void buttonReset_Click(object sender, EventArgs e) { if (MessageBox.Show(this, "This operation cannot be undone. Continue?", "Chao Editor Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) != DialogResult.Yes) { return; } List <VMS_Chao> vmschao = new List <VMS_Chao>(); foreach (VMS_Chao chao in SaveFile.GardenChao) { vmschao.Add(chao); } SaveFile = new VMS_ChaoGardenSave(); SaveFile.GardenChao.Clear(); foreach (VMS_Chao chao in vmschao) { SaveFile.GardenChao.Add(chao); } SetData(); }
public EditorChaoRaceData(VMS_ChaoGardenSave save) { InitializeComponent(); SaveFile = save; SetData(); }