MInor clean

This commit is contained in:
Kurt
2020-04-15 09:47:20 -07:00
parent d89a7245e0
commit 7e3003687b
2 changed files with 1 additions and 3 deletions

View File

@@ -118,7 +118,6 @@ private void CB_StructureType_SelectedIndexChanged(object sender, EventArgs e)
private void NUD_PlazaCoordinate_ValueChanged(object sender, EventArgs e) => DrawMap(Index);
private void B_DumpAll_Click(object sender, EventArgs e)
{
using var sfd = new SaveFileDialog
@@ -147,7 +146,7 @@ private void B_ImportAll_Click(object sender, EventArgs e)
var path = ofd.FileName;
var fi = new FileInfo(path);
int expect = MainSaveOffsets.BuildingCount * Building.SIZE;
const int expect = MainSaveOffsets.BuildingCount * Building.SIZE;
if (fi.Length != expect)
{
WinFormsUtil.Error($"Expected size (0x{expect:X}) != Input size (0x{fi.Length:X}", path);

View File

@@ -430,6 +430,5 @@ private void Remove(Control sender, Func<int, int, int, int, int> removal)
private void B_RemovePlacedItems_Click(object sender, EventArgs e) => Remove(B_RemovePlacedItems, Layer.RemoveAllPlacedItems);
private void PG_Tile_PropertyValueChanged(object s, PropertyValueChangedEventArgs e) => PG_Tile.SelectedObject = PG_Tile.SelectedObject;
}
}