53 lines
1.5 KiB
C#
53 lines
1.5 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;
|
|||
|
|
using CaeJob;
|
|||
|
|
using CPSO.Forms;
|
|||
|
|
|
|||
|
|
namespace CPSO.Commands
|
|||
|
|
{
|
|||
|
|
[Serializable]
|
|||
|
|
class COpenResults : PostprocessCommand, IFileCommand, ICommandAsynchronous
|
|||
|
|
{
|
|||
|
|
// Variables
|
|||
|
|
private string _jobName;
|
|||
|
|
|
|||
|
|
|
|||
|
|
// Properties
|
|||
|
|
public string JobName { get { return _jobName; } }
|
|||
|
|
|
|||
|
|
|
|||
|
|
// Constructor
|
|||
|
|
public COpenResults(string jobName)
|
|||
|
|
: base("Open results")
|
|||
|
|
{
|
|||
|
|
_jobName = jobName;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
// Methods
|
|||
|
|
public override bool Execute(Controller receiver)
|
|||
|
|
{
|
|||
|
|
receiver.OpenResults(_jobName);
|
|||
|
|
return true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public bool ExecuteSynchronous(Controller receiver)
|
|||
|
|
{
|
|||
|
|
receiver.OpenResults(_jobName, false);
|
|||
|
|
return true;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public override string GetCommandString()
|
|||
|
|
{
|
|||
|
|
return base.GetCommandString() + _jobName;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|