Esempio n. 1
0
 public CableInfo(CableInfo cable)
 {
     CableId    = CacheGraph.GetMaxCableId() + 1;
     CableName  = cable.CableName;
     Remark     = cable.Remark;
     ModifyDate = cable.ModifyDate;
     CreateUser = cable.CreateUser;
     BgImgPath  = cable.BgImgPath;
     Settings   = new CheckSetting
     {
         AutoStart     = cable.Settings.AutoStart,
         OkAutoRelease = cable.Settings.OkAutoRelease,
         NgAutoRelease = cable.Settings.NgAutoRelease,
         OkTime        = cable.Settings.OkTime,
         NgTime        = cable.Settings.NgTime
     };
 }
Esempio n. 2
0
 public CableInfo()
 {
     CableId    = CacheGraph.GetMaxCableId() + 1;
     CableName  = "";
     Remark     = "";
     ModifyDate = "";
     CreateUser = "";
     BgImgPath  = "";
     Settings   = new CheckSetting
     {
         AutoStart     = false,
         OkAutoRelease = false,
         NgAutoRelease = false,
         OkTime        = 0,
         NgTime        = 0
     };
 }