protected virtual void OnSelectError(VMError error) { if (SelectError != null) { SelectError(this, error); } }
protected virtual void OnFixError(VMError error) { if (FixError != null) { FixError(this, error); } }
private void SelectError(object sender, VMError error) { if (error != null) { VMToolSelected(null, _tools.First(x => x is StandardTool)); Points.ForEach(x => x.IsSelected = x.Vertices != null && error.Vertices.Any(y => x.Vertices.Contains(y))); foreach (var f in _copies.SelectMany(x => x.Key.Faces)) { f.IsSelected = error.Faces.Contains(f); } } else { foreach (var f in _copies.SelectMany(x => x.Key.Faces)) { f.IsSelected = false; } } }