Files
wg_cpso/CPSO/Commands/0062_Section/CAddSection.cs
2026-03-25 18:20:24 +08:00

41 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CPSO;
using CaeModel;
using CaeMesh;
using CaeGlobals;
namespace CPSO.Commands
{
[Serializable]
class CAddSection : PreprocessCommand
{
// Variables
private Section _section;
// Constructor
public CAddSection(Section section)
: base("Add section")
{
_section = section.DeepClone();
}
// Methods
public override bool Execute(Controller receiver)
{
receiver.AddSection(_section.DeepClone());
return true;
}
public override string GetCommandString()
{
return base.GetCommandString() + _section.ToString();
}
}
}