39 lines
		
	
	
		
			758 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			758 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System;
 | 
						|
using System.Collections.Generic;
 | 
						|
using System.Text;
 | 
						|
using VEPROMS.CSLA.Library;
 | 
						|
 | 
						|
namespace Volian.Controls.Library
 | 
						|
{
 | 
						|
	public class VlnSpellCheck
 | 
						|
	{
 | 
						|
		private EditItem _MyEditItem;
 | 
						|
		public EditItem MyEditItem
 | 
						|
		{
 | 
						|
			get { return _MyEditItem; }
 | 
						|
			set
 | 
						|
			{
 | 
						|
				_MyEditItem = value;
 | 
						|
			}
 | 
						|
		}
 | 
						|
 | 
						|
 | 
						|
		public VlnSpellCheck()
 | 
						|
		{
 | 
						|
		}
 | 
						|
 | 
						|
		public void DoSpellCheck()
 | 
						|
		{
 | 
						|
			while (MyEditItem.SpellCheckNext())
 | 
						|
			{
 | 
						|
				ItemInfo next = MyEditItem.MyItemInfo.SearchNext;
 | 
						|
				if (next == null || !next.IsStep) // B2016-063 check if next is not a step type instead of specifically a section
 | 
						|
					return; // spell check only current section
 | 
						|
				MyEditItem.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OpenItem(next);
 | 
						|
			}
 | 
						|
			MyEditItem.SetFocus();
 | 
						|
		}
 | 
						|
 | 
						|
	}
 | 
						|
}
 |