/// <summary>
    /// Reads a structre file and creates the parts, feeding them into the _existingParts list
    /// </summary>
    /// <param name="file">The file to be read</param>
    void ReadStructure(string file)
    {
        var newParts = JSONReader.ReadStructureAsList(_grid, file);

        foreach (var item in newParts)
        {
            _existingParts.Add(item);
        }
    }
Beispiel #2
0
    /// <summary>
    /// Reads a structre file and creates the parts, feeding them into the _existingParts list
    /// </summary>
    /// <param name="file">The file to be read</param>
    private void ReadStructure(string file)
    {
        var newParts = JSONReader.ReadStructureAsList(this, file);

        foreach (var item in newParts)
        {
            ExistingParts.Add(item);
        }
    }