Пример #1
0
        private void buttonGetUnicode_Click(object sender, EventArgs e)
        {
            textBoxOutput.Text = "";
            List <String> transforms = new List <string>();

            transforms = Data.GetNormalizationMappings(Input);

            string output = String.Empty;

            foreach (string transform in transforms)
            {
                UniChar uc = new UniChar();
                if (!String.IsNullOrEmpty(transform))
                {
                    output += uc.ConvertCodePointToString(transform) + "\r\n";
                }
            }

            textBoxOutput.Text = output;

            // Fill DataGrid
            List <UnicodeMapping> lTransformations = new List <UnicodeMapping>();

            dataGridViewBestFit.DataSource = null;
            Data.BuildTransformationsTable(Input, ref lTransformations, Transform);
            dataGridViewBestFit.DataSource = lTransformations;
        }
Пример #2
0
        private void buttonGetBestfit_Click(object sender, EventArgs e)
        {
            textBoxOutput.Text = "";
            List <String> bestfits = new List <string>();

            bestfits = Data.GetBestfitMappings(Input);

            string output = String.Empty;

            foreach (string bestfit in bestfits)
            {
                UniChar uc = new UniChar();
                if (!String.IsNullOrEmpty(bestfit))
                {
                    output += uc.ConvertCodePointToString(bestfit) + "\r\n";
                }
            }

            textBoxOutput.Text = output;

            // Fill DataGrid
            List <BestFitMapping> lBestfits = new List <BestFitMapping>();

            dataGridViewBestFit.DataSource = null;
            Data.BuildBestfitTable(Input, ref lBestfits, Charset);
            dataGridViewBestFit.DataSource = lBestfits;
        }