39 lines
		
	
	
		
			680 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			680 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.IsSection)
 | |
| 					return; // spell check only current section
 | |
| 				MyEditItem.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OpenItem(next);
 | |
| 			}
 | |
| 			MyEditItem.SetFocus();
 | |
| 		}
 | |
| 
 | |
| 	}
 | |
| }
 |