예제 #1
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 public FrmDeviceData(Settings.KP kp, CommEnvironment environment)
     : this()
 {
     this.kp          = kp ?? throw new ArgumentNullException("kp");
     this.environment = environment ?? throw new ArgumentNullException("environment");
     dataBox          = new RemoteLogBox(lbDeviceData)
     {
         FullLogView = true
     };
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 public FrmDeviceData(Settings.KP kp, Settings.CommLine commLine, CommEnvironment environment)
     : this()
 {
     this.kp          = kp ?? throw new ArgumentNullException("kp");
     this.commLine    = commLine ?? throw new ArgumentNullException("commLine");
     this.environment = environment ?? throw new ArgumentNullException("environment");
     dataBox          = new RemoteLogBox(lbDeviceData)
     {
         FullLogView = true
     };
     frmDeviceCommand = null;
 }
예제 #3
0
파일: FrmStats.cs 프로젝트: ytchhh/scada
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 public FrmStats(CommEnvironment environment)
     : this()
 {
     this.environment = environment ?? throw new ArgumentNullException("environment");
     stateBox         = new RemoteLogBox(lbState)
     {
         FullLogView = true
     };
     logBox = new RemoteLogBox(lbLog)
     {
         AutoScroll = true
     };
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 public FrmDeviceData(IAdminContext adminContext, CommApp commApp, DeviceConfig deviceConfig) :
     this()
 {
     this.adminContext = adminContext ?? throw new ArgumentNullException(nameof(adminContext));
     this.commApp      = commApp ?? throw new ArgumentNullException(nameof(commApp));
     this.deviceConfig = deviceConfig ?? throw new ArgumentNullException(nameof(deviceConfig));
     dataBox           = new RemoteLogBox(lbDeviceData)
     {
         FullLogView = true
     };
     frmDeviceCommand = null;
     isClosed         = false;
 }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 public FrmLineStats(Settings.CommLine commLine, CommEnvironment environment)
     : this()
 {
     this.commLine    = commLine ?? throw new ArgumentNullException("commLine");
     this.environment = environment ?? throw new ArgumentNullException("environment");
     stateBox         = new RemoteLogBox(lbState)
     {
         FullLogView = true
     };
     logBox = new RemoteLogBox(lbLog, true)
     {
         AutoScroll = true
     };
     stateTabActive = true;
 }
예제 #6
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 public FrmLineStats(IAdminContext adminContext, LineConfig lineConfig)
     : this()
 {
     this.adminContext = adminContext ?? throw new ArgumentNullException(nameof(adminContext));
     this.lineConfig   = lineConfig ?? throw new ArgumentNullException(nameof(lineConfig));
     stateBox          = new RemoteLogBox(lbState)
     {
         FullLogView = true
     };
     logBox = new RemoteLogBox(lbLog, true)
     {
         AutoScroll = true
     };
     stateTabActive = true;
     isClosed       = false;
 }