/// <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 }; }
/// <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; }
/// <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 }; }
/// <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; }
/// <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; }
/// <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; }