|
@@ -1,22 +1,24 @@
|
|
|
-using System;
|
|
|
+using System;
|
|
|
using System.Collections.Generic;
|
|
|
-using PixiEditor.Models.Position;
|
|
|
-using PixiEditor.Models.Tools;
|
|
|
-
|
|
|
-namespace PixiEditorTests.ModelsTests.ControllersTests
|
|
|
-{
|
|
|
- public class TestReadonlyTool : ReadonlyTool
|
|
|
- {
|
|
|
- public TestReadonlyTool(Action toolAction)
|
|
|
- {
|
|
|
- ToolAction = toolAction;
|
|
|
- }
|
|
|
-
|
|
|
- public Action ToolAction { get; set; }
|
|
|
-
|
|
|
- public override void Use(List<Coordinates> pixels)
|
|
|
- {
|
|
|
- ToolAction();
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
+using PixiEditor.Models.Position;
|
|
|
+using PixiEditor.Models.Tools;
|
|
|
+
|
|
|
+namespace PixiEditorTests.ModelsTests.ControllersTests
|
|
|
+{
|
|
|
+ public class TestReadonlyTool : ReadonlyTool
|
|
|
+ {
|
|
|
+ public override string Tooltip => "";
|
|
|
+
|
|
|
+ public TestReadonlyTool(Action toolAction)
|
|
|
+ {
|
|
|
+ ToolAction = toolAction;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Action ToolAction { get; set; }
|
|
|
+
|
|
|
+ public override void Use(List<Coordinates> pixels)
|
|
|
+ {
|
|
|
+ ToolAction();
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|