public void OnTriangleAdded(object sender, TriangleEventArgs args) { TriangleListItemViewModel viewModel = new TriangleListItemViewModel { Triangle = args.Triangle }; TriangleListItems.Add(viewModel); }
private void Triangles_TriangleRemoved(object sender, TriangleEventArgs e) { OnShapeRemoved(e.Entity); }