port from perforce
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
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
|
||||
{
|
||||
/// <summary>
|
||||
/// The viewmodel for the editor component that is displayed next to a node endpoint.
|
||||
/// </summary>
|
||||
public class NodeEndpointEditorViewModel : ReactiveObject
|
||||
{
|
||||
static NodeEndpointEditorViewModel()
|
||||
{
|
||||
NNViewRegistrar.AddRegistration(() => new NodeEndpointEditorView(), typeof(IViewFor<NodeEndpointEditorViewModel>));
|
||||
}
|
||||
|
||||
#region Logger
|
||||
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||
#endregion
|
||||
|
||||
#region Parent
|
||||
/// <summary>
|
||||
/// The endpoint that has this object as its editor.
|
||||
/// </summary>
|
||||
public Endpoint Parent
|
||||
{
|
||||
get => _parent;
|
||||
internal set => this.RaiseAndSetIfChanged(ref _parent, value);
|
||||
}
|
||||
private Endpoint _parent;
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user