private void Update() { if (node != null && solver != null && !solver.maneuverNodes.Contains(node)) { // User deleted the node! Remove it from everything. PlanningNodesManager.Instance.nodes.Remove(editingNode); editingNode = null; node = null; // Tell listeners to return to non-editing state DeleteMe?.Invoke(); } }
private void ContextMenu_Delete(object sender, RoutedEventArgs e) { DeleteMe?.Invoke(this, new EventArgs()); }