..
This commit is contained in:
34
Handler/swPLC/CSetting.cs
Normal file
34
Handler/swPLC/CSetting.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using AR;
|
||||
|
||||
namespace Project
|
||||
{
|
||||
public class CSetting : AR.Setting
|
||||
{
|
||||
#region "swplc"
|
||||
public string swplc_name { get; set; }
|
||||
public int swplc_size { get; set; }
|
||||
#endregion
|
||||
|
||||
public CSetting()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void AfterLoad()
|
||||
{
|
||||
if (swplc_size < 1) swplc_size = 100;
|
||||
if (swplc_name.isEmpty()) swplc_name = "swplc";
|
||||
|
||||
}
|
||||
|
||||
public override void AfterSave()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user