/// <summary> /// Initializes a new instance of the class. /// </summary> public FrmCnlCreate(ScadaProject project, RecentSelection recentSelection, AppData appData) : this() { this.project = project ?? throw new ArgumentNullException("project"); this.appData = appData ?? throw new ArgumentNullException("appData"); step = 1; }
/// <summary> /// Initializes a new instance of the class. /// </summary> public CtrlLineSelect(IAdminContext adminContext, ScadaProject project, RecentSelection recentSelection) : this() { this.adminContext = adminContext ?? throw new ArgumentNullException(nameof(adminContext)); this.project = project ?? throw new ArgumentNullException(nameof(project)); this.recentSelection = recentSelection ?? throw new ArgumentNullException(nameof(recentSelection)); }
/// <summary> /// Initializes a new instance of the class. /// </summary> public FrmCnlCreate(IAdminContext adminContext, ScadaProject project, RecentSelection recentSelection) : this() { this.adminContext = adminContext ?? throw new ArgumentNullException(nameof(adminContext)); this.project = project ?? throw new ArgumentNullException(nameof(project)); this.recentSelection = recentSelection ?? throw new ArgumentNullException(nameof(recentSelection)); step = 1; }
/// <summary> /// Initializes a new instance of the class. /// </summary> public CtrlExtensionMenu(IAdminContext adminContext) : this() { this.adminContext = adminContext ?? throw new ArgumentNullException(nameof(adminContext)); recentSelection = new RecentSelection(); SetMenuItemsEnabled(); adminContext.CurrentProjectChanged += AdminContext_CurrentProjectChanged; }
/// <summary> /// Initializes the control. /// </summary> public void Init(IAdminContext adminContext, ScadaProject project, RecentSelection recentSelection) { this.adminContext = adminContext ?? throw new ArgumentNullException(nameof(adminContext)); this.project = project ?? throw new ArgumentNullException(nameof(project)); this.recentSelection = recentSelection ?? throw new ArgumentNullException(nameof(recentSelection)); CnlPrototypes = null; ScanCommSettings(); FillCommLineList(); }
/// <summary> /// Initializes a new instance of the class. /// </summary> public FrmLineAdd(ScadaProject project, RecentSelection recentSelection) : this() { this.project = project ?? throw new ArgumentNullException("project"); this.recentSelection = recentSelection ?? throw new ArgumentNullException("recentSelection"); InstanceName = ""; CommLineSettings = null; numCommLineNum.Maximum = ushort.MaxValue; txtName.MaxLength = ColumnLength.Name; txtDescr.MaxLength = ColumnLength.Description; }
/// <summary> /// Initializes a new instance of the class. /// </summary> public FrmLineAdd(ScadaProject project, RecentSelection recentSelection) : this() { this.project = project ?? throw new ArgumentNullException(nameof(project)); this.recentSelection = recentSelection ?? throw new ArgumentNullException(nameof(recentSelection)); Instance = null; LineConfig = null; numCommLineNum.Maximum = ConfigDatabase.MaxID; txtName.MaxLength = ExtensionUtils.NameLength; txtDescr.MaxLength = ExtensionUtils.DescrLength; }
/// <summary> /// Initializes a new instance of the class. /// </summary> public FrmDeviceAdd(IAdminContext adminContext, ScadaProject project, RecentSelection recentSelection) : this() { this.adminContext = adminContext ?? throw new ArgumentNullException(nameof(adminContext)); this.project = project ?? throw new ArgumentNullException(nameof(project)); this.recentSelection = recentSelection ?? throw new ArgumentNullException(nameof(recentSelection)); Instance = null; DeviceConfig = null; LineConfig = null; numDeviceNum.Maximum = ConfigDatabase.MaxID; txtName.MaxLength = ExtensionUtils.NameLength; txtStrAddress.MaxLength = ExtensionUtils.DefaultLength; txtDescr.MaxLength = ExtensionUtils.DescrLength; }
/// <summary> /// Initializes a new instance of the class. /// </summary> public FrmWirenBoardWizard(IAdminContext adminContext, ScadaProject project, RecentSelection recentSelection) : this() { this.adminContext = adminContext ?? throw new ArgumentNullException(nameof(adminContext)); this.project = project ?? throw new ArgumentNullException(nameof(project)); ctrlLineSelect = new CtrlLineSelect(adminContext, project, recentSelection); ctrlLog = new CtrlLog(); ctrlDeviceTree = new CtrlDeviceTree(); ctrlEntityID = new CtrlEntityID(adminContext, project, recentSelection); logHelper = new RichTextBoxHelper(ctrlLog.RichTextBox); AddUserControls(); step = Step.SelectLine; topicReader = null; configBuilder = null; }
/// <summary> /// Initializes the control. /// </summary> public void Init(ScadaProject project, RecentSelection recentSelection) { this.project = project ?? throw new ArgumentNullException(nameof(project)); this.recentSelection = recentSelection ?? throw new ArgumentNullException(nameof(recentSelection)); FillObjectList(); }