This commit is contained in:
38
PROMS/Volian.Controls.Library/VlnSpellCheck.cs
Normal file
38
PROMS/Volian.Controls.Library/VlnSpellCheck.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using VEPROMS.CSLA.Library;
|
||||
|
||||
namespace Volian.Controls.Library
|
||||
{
|
||||
public class VlnSpellCheck
|
||||
{
|
||||
private StepItem _MyStepItem;
|
||||
public StepItem MyStepItem
|
||||
{
|
||||
get { return _MyStepItem; }
|
||||
set
|
||||
{
|
||||
_MyStepItem = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public VlnSpellCheck()
|
||||
{
|
||||
}
|
||||
|
||||
public void DoSpellCheck()
|
||||
{
|
||||
while (MyStepItem.MyStepRTB.SpellCheckNext())
|
||||
{
|
||||
ItemInfo next = MyStepItem.MyItemInfo.SearchNext;
|
||||
if (next.IsSection)
|
||||
return; // spell check only current section
|
||||
MyStepItem.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OpenItem(next);
|
||||
}
|
||||
MyStepItem.MyStepRTB.Focus();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user