Пример #1
0
 protected virtual void OnSelectError(VMError error)
 {
     if (SelectError != null)
     {
         SelectError(this, error);
     }
 }
Пример #2
0
 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;
         }
     }
 }
Пример #3
0
 protected virtual void OnFixError(VMError error)
 {
     if (FixError != null)
     {
         FixError(this, error);
     }
 }