private void setEquipProperty(DrawingUnit unit) { if (unit != null) // { EquipProperty prop = new EquipProperty(unit.Item); prop.ShowDialog(); prop.Dispose(); } }