public Misc(Main fmain, Tilemap ftm) { InitializeComponent(); tm = ftm; main = fmain; }
private void cmd_openref_Click(object sender, EventArgs e) { Tile t = tm.get((int)num_selx.Value, (int)num_sely.Value); if (!tm.CityMap.isCity((int)num_selx.Value, (int)num_sely.Value)) return; Tilemap rtm = new Tilemap(tm.CityMap.get((int)num_selx.Value, (int)num_sely.Value).Name); Main f = new Main(rtm); f.Show(); }