что нужно подключить, чтобы не выдавала ошибку. помогите пожалуйста, заранее спасибо!
Код:
using System;
using System.Collections.Generic;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.Office.Interop.Word;
using Microsoft.VisualStudio.Language.Spellchecker;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Collections.Concurrent;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Forms.ComponentModel.Com2Interop;
namespace WindowsFormsApplication555
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//[STAThread]
private void button1_Click(object sender, EventArgs e)
{
//textBox2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
//textBox3.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
string sentence = textBox2.Text;
string[] words = sentence.Split();
SpellCheck checker = new SpellCheck();
//checker = new spellChecker();
textBox3.Text = "";
foreach (string word in words)
{
string[] suggestions = checker.suggest(word);
if (suggestions == null)
{
textBox3.Text += """ + word + "" написанно верноrn";
}
else
{
textBox3.Text += """ + word + "" написанно не верно! Варианты: rn";
foreach (string suggestion in suggestions)
textBox3.Text += "t" + suggestion + "rn";
}
}
checker = null;
}
}
}
using System.Collections.Generic;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.Office.Interop.Word;
using Microsoft.VisualStudio.Language.Spellchecker;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Collections.Concurrent;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Forms.ComponentModel.Com2Interop;
namespace WindowsFormsApplication555
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
//[STAThread]
private void button1_Click(object sender, EventArgs e)
{
//textBox2.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
//textBox3.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
string sentence = textBox2.Text;
string[] words = sentence.Split();
SpellCheck checker = new SpellCheck();
//checker = new spellChecker();
textBox3.Text = "";
foreach (string word in words)
{
string[] suggestions = checker.suggest(word);
if (suggestions == null)
{
textBox3.Text += """ + word + "" написанно верноrn";
}
else
{
textBox3.Text += """ + word + "" написанно не верно! Варианты: rn";
foreach (string suggestion in suggestions)
textBox3.Text += "t" + suggestion + "rn";
}
}
checker = null;
}
}
}