public void CreatePerson() { if (this.PersonNames.Any(x => x == this.NewNodeName)) { // such a person already exists: there should be some validation message, but // it is not so important in a demo return; } var p = new PertGraphPageNodeViewModel(this.Graph) { Name = this.NewNodeName }; this.Graph.AddVertex(p); }
public RemoveCommandImpl(PertGraphPageNodeViewModel person) { this.person = person; }