private void open_properties() { LayerPropertiesWnd lpw = new LayerPropertiesWnd(); lpw.init(mLayerRef); if (lpw.ShowDialog() == DialogResult.Cancel) { return; } lpw.setvalues(mLayerRef); mLayerRef.parentmap.touch(); Global.ForceRedraws(); }
private void b_layerproperties_Click(object sender, System.EventArgs e) { if (Global.editedLayer == null || Global.editedLayer.type != LayerType.Tile) return; MapLayer mLayerRef = Global.editedLayer; LayerPropertiesWnd lpw = new LayerPropertiesWnd(); lpw.init(mLayerRef); if (lpw.ShowDialog() == DialogResult.Cancel) return; lpw.setvalues(mLayerRef); mLayerRef.parentmap.touch(); }
private void open_properties() { LayerPropertiesWnd lpw = new LayerPropertiesWnd(); lpw.init(mLayerRef); if(lpw.ShowDialog()==DialogResult.Cancel) return; lpw.setvalues(mLayerRef); mLayerRef.parentmap.touch(); Global.ForceRedraws(); }