Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
be0a8da09This file is pinned to the selected release. Download the original to open it in your design tool.
using OpenScadGraphEditor.Library.IO;
namespace OpenScadGraphEditor.Library
{
public class VariableDescription
{
/// <summary>
/// Id of the variable.
/// </summary>
public string Id { get; set; } = "";
/// <summary>
/// The name of the variable.
/// </summary>
public string Name { get; set; } = "";
public void LoadFrom(SavedVariableDescription savedVariableDescription)
{
Id = savedVariableDescription.Id;
Name = savedVariableDescription.Name;
}
public void SaveInto(SavedVariableDescription savedVariableDescription)
{
savedVariableDescription.Id = Id;
savedVariableDescription.Name = Name;
}
}
}