public Tiled2UnityViewer(TmxMap tmxMap) { this.tmxMap = tmxMap; this.preferencesForm = new PreviewPreferencesForm(); this.preferencesForm.ApplyChanges += new PreviewPreferencesForm.OnApplyChanges(preferencesForm_ApplyChanges); this.preferencesForm.InitializePrefernces(tmxMap); InitializeComponent(); }