private void button4_Click(object sender, EventArgs e) { int yMin = Math.Min(sub.lines[line].letters[start].yMin, sub.lines[line].letters[end - 1].yMin); int yMax = Math.Max(sub.lines[line].letters[start].yMax, sub.lines[line].letters[end - 1].yMax); FramePreview prev = new FramePreview(sub, sub.lines[line].letters[start].xMin - 2, yMin - 2, sub.lines[line].letters[end - 1].xMax + 2, yMax + 2); prev.ShowDialog(); if (prev.exitStatus == GuessLetter.Result.skipSub) { result = Result.skipSub; Close(); } else if (prev.exitStatus == GuessLetter.Result.subChanged) { result = Result.subChanged; Close(); } else if (prev.exitStatus == GuessLetter.Result.subRewrited) { subRewrited = prev.corrected; result = Result.subRewrited; Close(); } }
private void button4_Click(object sender, EventArgs e) { FramePreview prev = new FramePreview(sub, lett.xMin - 2, lett.yMin - 2, lett.xMax + 2, lett.yMax + 2); prev.ShowDialog(); if (prev.exitStatus == Result.subRewrited) { correction = prev.corrected; result = prev.exitStatus; Close(); } else if (prev.exitStatus == Result.skipSub || prev.exitStatus == Result.subChanged) { result = prev.exitStatus; Close(); } }