Files
wg_cpso/CPSO/Commands/0110_Results/00_Base/CSetCurrentResults.cs

48 lines
1.5 KiB
C#
Raw Permalink Normal View History

2026-03-25 18:20:24 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CPSO;
using CaeModel;
using CaeMesh;
using CaeGlobals;
using CaeJob;
using CPSO.Forms;
using System.IO;
namespace CPSO.Commands
{
[Serializable]
class CSetCurrentResults : PostprocessCommand
{
// Variables
private string _resultsName;
// Properties
public string ResultsName { get { return _resultsName; } }
public string JobName { get { return Path.GetFileNameWithoutExtension(_resultsName); } }
// Constructor
public CSetCurrentResults(string resultsName)
: base("Set current results")
{
_resultsName = resultsName;
}
// Methods
public override bool Execute(Controller receiver)
{
receiver.SetCurrentResults(_resultsName);
return true;
}
public override string GetCommandString()
{
return base.GetCommandString() + _resultsName;
}
}
}