Ejemplo n.º 1
0
 private void ClearAll_Click(object sender, RoutedEventArgs e)
 {
     ClearSelection();
     strokeService.ClearStrokes();
     transformService.ClearTextAndShapes();
     undoRedoService.Reset();
 }
        private void ClearAll_Click(object sender, RoutedEventArgs e)
        {
            var strokes = strokeService?.GetStrokes().ToList();

            ClearSelection();
            strokeService?.ClearStrokes();
            undoRedoService?.AddOperation(new RemoveStrokeUndoRedoOperation(strokes, strokeService));
        }
Ejemplo n.º 3
0
        private void ClearAll()
        {
            strokesService?.ClearStrokes();
            imageFile    = null;
            image.Source = null;

            RefreshEnabledButtons();
        }
Ejemplo n.º 4
0
        private void ClearAll_Click(object sender, RoutedEventArgs e)
        {
            var strokes       = strokeService?.GetStrokes().ToList();
            var textAndShapes = transformService?.GetTextAndShapes().ToList();

            ClearSelection();
            strokeService.ClearStrokes();
            transformService.ClearTextAndShapes();
            undoRedoService.AddOperation(new ClearStrokesAndShapesUndoRedoOperation(strokes, textAndShapes, strokeService, transformService));
        }
 private void ClearAll_Click(object sender, RoutedEventArgs e)
 {
     ClearSelection();
     strokeService?.ClearStrokes();
     undoRedoService?.Reset();
 }