/// <summary>
        /// Initializes a new instance of the <see cref="SelectAdapterViewModel" /> class.
        /// </summary>
        /// <param name="logger">The logger.</param>
        /// <param name="scope">The scope.</param>
        /// <param name="changeActualIdToConnectedEventHandler">The change actual identifier to connected event handler.</param>
        /// <param name="getActualNodeId">The get actual node identifier.</param>
        public SelectAdapterViewModel(ILogger logger, ILifetimeScope scope, IChangeActualIdToConnectedEventHandler changeActualIdToConnectedEventHandler, IGetActualNodeId getActualNodeId)
        {
            this.Logger = logger;
            this.Scope  = scope;
            this.ChangeActualIdToConnectedEventHandler = changeActualIdToConnectedEventHandler;
            this.ConnectCommand        = new RelayCommand(this.ConnectCommandAction);
            this.NodeIdChangeIsEnabled = true;

            this.NodeIdValue = getActualNodeId.Get();
        }
Beispiel #2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="GetActualNodeId" /> class.
 /// </summary>
 /// <param name="logger">The logger.</param>
 /// <param name="changeActualIdToConnectedEventHandler">The change actual identifier to connected event handler.</param>
 public GetActualNodeId(ILogger logger, IChangeActualIdToConnectedEventHandler changeActualIdToConnectedEventHandler)
 {
     this.Logger = logger;
     this.ChangeActualIdToConnectedEventHandler = changeActualIdToConnectedEventHandler;
     this.ChangeActualIdToConnectedEventHandler.EventIsReached += this.ChangeActualIdToConnectedEventHandler_EventIsReached;
 }