private async Task LoadUniCode(object obj)
        {
            object[]     arObj  = obj as object[];
            string       source = (string)arObj[0];
            UniCodeRange range  = arObj[1] as UniCodeRange;

            string fileName = string.Format(@".\{0}.xml", range.Value);

            UnicodeData[] array1D = null;
            if (!File.Exists(fileName))
            {
                array1D = await XmlUnicodeRegion.Main(source, true);

                if (_RenderButton)
                {
                    BeginInvoke(CreatButtons(array1D));
                }
                await XmlUnicodeRegion.SaveXml(array1D, fileName);

                if (AppSetting.IsOpenFileGegionUnicodeData)
                {
                    System.Diagnostics.Process.Start("notepad++.exe", fileName);
                }
                ;
            }
            else
            {
                array1D = await XmlUnicodeRegion.Main(fileName, false);

                if (_RenderButton)
                {
                    BeginInvoke(CreatButtons(array1D));
                }
            }
        }
Esempio n. 2
0
        private async Task <UnicodeData[]> LoadUniCode(string unicodeRegion)
        {
            string fileName = string.Format(@".\{0}.xml", unicodeRegion);

            UnicodeData[] array1D = await XmlUnicodeRegion.Main(fileName, false);

            return(array1D);
        }