|
@@ -20,7 +20,6 @@ namespace SketchAssistant
|
|
|
{
|
|
|
InitializeComponent();
|
|
|
ProgramPresenter = new MVP_Presenter(this);
|
|
|
- fileImporter = new FileImporter();
|
|
|
}
|
|
|
|
|
|
|
|
@@ -46,86 +45,18 @@ namespace SketchAssistant
|
|
|
Delete
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- private ProgramState currentState;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- private FileImporter fileImporter;
|
|
|
-
|
|
|
|
|
|
|
|
|
OpenFileDialog openFileDialog = new OpenFileDialog();
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- private Image leftImage = null;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- private List<Line> leftLineList;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- Image rightImage = null;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- List<Point> currentLine;
|
|
|
-
|
|
|
|
|
|
|
|
|
List<Tuple<bool,Line>> rightLineList = new List<Tuple<bool, Line>>();
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- bool mousePressed = false;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- Point currentCursorPosition;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- Point previousCursorPosition;
|
|
|
-
|
|
|
|
|
|
|
|
|
Queue<Point> cursorPositions = new Queue<Point>();
|
|
|
|
|
|
-
|
|
|
-
|
|
|
- Graphics rightGraph = null;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- bool[,] isFilledMatrix;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- HashSet<int>[,] linesMatrix;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- int deletionRadius = 2;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- ActionHistory historyOfActions;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- List<HashSet<Point>> overlayItems;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- RedrawAssistant redrawAss;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- int markerRadius = 10;
|
|
|
-
|
|
|
|
|
|
|
|
|
MVP_Presenter ProgramPresenter;
|
|
@@ -146,12 +77,7 @@ namespace SketchAssistant
|
|
|
{
|
|
|
ProgramPresenter.Resize(new Tuple<int, int>(pictureBoxLeft.Width, pictureBoxLeft.Height),
|
|
|
new Tuple<int, int>(pictureBoxRight.Width, pictureBoxRight.Height));
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- private void loadToolStripMenuItem_Click(object sender, EventArgs e)
|
|
|
- {
|
|
|
- ProgramPresenter.LoadToolStripMenuItemClick();
|
|
|
+ this.Refresh();
|
|
|
}
|
|
|
|
|
|
|
|
@@ -389,6 +315,8 @@ namespace SketchAssistant
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -409,7 +337,7 @@ namespace SketchAssistant
|
|
|
}
|
|
|
return varArr;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|