-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88e8779
commit 9bcab67
Showing
5 changed files
with
91 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// https://strusoft.com/ | ||
using System.IO; | ||
using System.Xml.Serialization; | ||
using System.Xml.Linq; | ||
|
||
namespace FemDesign.Calculate | ||
{ | ||
/// <summary> | ||
/// fdscript.xsd | ||
/// cmdchild | ||
/// </summary> | ||
[XmlRoot("cmdchild")] | ||
public partial class CmdChild : CmdCommand | ||
{ | ||
[XmlText] | ||
public string _templatePath; | ||
|
||
[XmlIgnore] | ||
public string TemplatePath | ||
{ | ||
get { return _templatePath; } | ||
set | ||
{ | ||
string extension = Path.GetExtension(value); | ||
if (extension != ".dsc") | ||
{ | ||
throw new System.ArgumentException("Incorrect file-extension. Expected .dsc."); | ||
} | ||
|
||
_templatePath = value; | ||
} | ||
} | ||
/// <summary> | ||
/// Parameterless constructor for serialization. | ||
/// </summary> | ||
private CmdChild() | ||
{ | ||
|
||
} | ||
public CmdChild(string filePath) | ||
{ | ||
TemplatePath = Path.GetFullPath(filePath); | ||
} | ||
public override XElement ToXElement() | ||
{ | ||
return Extension.ToXElement<CmdChild>(this); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters