Пример #1
0
        private void DeleteShape(object sender, MouseButtonEventArgs e)
        {
            System.Windows.Shapes.Shape selectedRectangle = sender as System.Windows.Shapes.Shape;

            foreach (AnnoShapeModel shapeModel in AnnoShapeModelCollection)
            {
                if (shapeModel.Shape == selectedRectangle)
                {
                    GetCamWindowView().ImageCanvas.Children.Remove(selectedRectangle);
                    httpRequestClient.deleteAnnotation(shapeModel);
                    AnnoShapeModelCollection.Remove(shapeModel);
                    break;
                }
            }
        }