Files
wg_cpso/CaeJob/EnvironmentVariable.cs

47 lines
1.3 KiB
C#
Raw Normal View History

2026-03-25 18:20:24 +08:00
using CaeGlobals;
using System;
using System.ComponentModel;
namespace CaeJob
{
[Serializable]
public class EnvironmentVariable
{
// Properties
[Category("Data")]
[OrderedDisplayName(0, 10, "Active")]
[Description("The state of the environment variable.")]
public bool Active { get; set; }
[Category("Data")]
[OrderedDisplayName(1, 10, "Name")]
[Description("The name of the environment variable.")]
public string Name { get; set; }
[Category("Data")]
[OrderedDisplayName(2, 10, "Value")]
[Description("The value of the environment variable.")]
public string Value { get; set; }
// Constructors
public EnvironmentVariable()
{
//Active = true;
}
public EnvironmentVariable(string name, string value)
: this()
{
Active = true;
Name = name;
Value = value;
}
public override string ToString()
{
return Name + "=" + Value;
}
}
}