public void SetMapPack(MapImagePack mpiPack) { string strCurrentMapFileName = String.Empty; if (this.LoadedMapImagePack != null) { strCurrentMapFileName = this.LoadedMapImagePack.LoadedMapFileName; } this.LoadedMapImagePack = mpiPack; if (strCurrentMapFileName.Length > 0) { this.LoadedMapImagePack.LoadMap(strCurrentMapFileName, this.FullyLoadMap); this.MapLoaded(strCurrentMapFileName); //if (this.MapLoaded != null) { // this.MapLoaded(strCurrentMapFileName); //} } }
public void SetMapPack(MapImagePack mpiPack) { string strCurrentMapFileName = String.Empty; if (this.LoadedMapImagePack != null) { strCurrentMapFileName = this.LoadedMapImagePack.LoadedMapFileName; } this.LoadedMapImagePack = mpiPack; if (strCurrentMapFileName.Length > 0) { this.LoadedMapImagePack.LoadMap(strCurrentMapFileName, this.FullyLoadMap); this.MapLoaded(strCurrentMapFileName); //if (this.MapLoaded != null) { // FrostbiteConnection.RaiseEvent(this.MapLoaded.GetInvocationList(), strCurrentMapFileName); //} } }