using System; using System.Collections.Generic; using System.Linq; using System.Reactive; using System.Reactive.Linq; using System.Text; using System.Threading.Tasks; using NodeNetwork.Views; using ReactiveUI; namespace NodeNetwork.ViewModels { /// /// The viewmodel for the editor component that is displayed next to a node endpoint. /// public class NodeEndpointEditorViewModel : ReactiveObject { static NodeEndpointEditorViewModel() { NNViewRegistrar.AddRegistration(() => new NodeEndpointEditorView(), typeof(IViewFor)); } #region Logger private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); #endregion #region Parent /// /// The endpoint that has this object as its editor. /// public Endpoint Parent { get => _parent; internal set => this.RaiseAndSetIfChanged(ref _parent, value); } private Endpoint _parent; #endregion } }