private void resetToolStripMenuItem_Click(object sender, EventArgs e) { _obj.Entries.Clear(); _obj.AddUnknow(_data.Length); _obj.SetData(_data); UpdateMap(); }
private void importJSONToolStripMenuItem_Click(object sender, EventArgs e) { openFileDialog1.FileName = ""; openFileDialog1.Filter = $"{Filters.JSON}|{Filters.ALL}"; if (openFileDialog1.ShowDialog() == DialogResult.OK) { string json = File.ReadAllText(openFileDialog1.FileName); _obj = Z64Object.FromJson(json); _obj.SetData(_data); UpdateMap(); } }