private void scale_ValueChanged(object sender, EventArgs e) { if (!canDetect) { return; } tm.scale = (int)scale.Value; if (Tilemapper.editing != -1) { Tilemapper.StopEditing(); Tilemapper.BeginEditing(tm.id); } selected = default(Point); Tilemapper.ConvertAndSetMap(tm); }
private void TilemapForm_Closing(object sender, FormClosingEventArgs e) { Tilemapper.StopEditing(); }