using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace token_passing
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void btnOK_Click(object sender, EventArgs e)
{
dgvOutput.ClearSelection();
}
Step Process()
{
char *find_text;
Cut_all_text( ); // Cut Sentence
read_all_text.open(input_text);
while(read_all_text) // do all
{
read_all_text.getline(Buffer_text,Maxline);
if (Buffer_text[0] == '\0')
break;
find_text = Buffer_text;
Spell_Checking(find_text);
Search_Sentence( );
//Search correct sentence from word graph
Perplexity(Sentence);
// Language Model
Evaluate(ppx); //find the best sentence
Keep_Correct_Sentence( );
//Keep the best correct sentence
}
}
private void btnClear_Click(object sender, EventArgs e)
{
txtInput.Clear();
dgvOutput.ClearSelection();
}
private void dgvOutput_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
txtInput.Text = dgvOutput.CurrentRow.Cells["Cus_ID"].Value.ToString();
}
}