This commit is contained in:
2011-01-19 16:22:52 +00:00
parent 3bae38ab21
commit 416eb91ed4
3 changed files with 88 additions and 88 deletions

View File

@@ -7,13 +7,13 @@ namespace Volian.Controls.Library
{
public class VlnSpellCheck
{
private StepItem _MyStepItem;
public StepItem MyStepItem
private RTBItem _MyRTBItem;
public RTBItem MyRTBItem
{
get { return _MyStepItem; }
get { return _MyRTBItem; }
set
{
_MyStepItem = value;
_MyRTBItem = value;
}
}
@@ -24,14 +24,14 @@ namespace Volian.Controls.Library
public void DoSpellCheck()
{
while (MyStepItem.MyStepRTB.SpellCheckNext())
while (MyRTBItem.MyStepRTB.SpellCheckNext())
{
ItemInfo next = MyStepItem.MyItemInfo.SearchNext;
ItemInfo next = MyRTBItem.MyItemInfo.SearchNext;
if (next.IsSection)
return; // spell check only current section
MyStepItem.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OpenItem(next);
MyRTBItem.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OpenItem(next);
}
MyStepItem.MyStepRTB.Focus();
MyRTBItem.MyStepRTB.Focus();
}
}