Ejemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            _spellChecker = new Net.Uyghurdev.Spelling.TextBasedSpellChecker();

            Net.Uyghurdev.Spelling.Interfaces.IInitialable init
                = ((Net.Uyghurdev.Spelling.TextBasedSpellChecker)_spellChecker) as Net.Uyghurdev.Spelling.Interfaces.IInitialable;

            Dictionary <string, object> paramlar = new Dictionary <string, object>();

            //soz ammarlirining turux orininining adrisini "path" ning value si kilip yollap berix kerek.  masilan:  "c:\spel\words\"

            /*
             *
             *  string p = HttpContext.Current.Request.ApplicationPath;
             *  if (p == "/")
             *  p = "";
             *  string filepath = Server.MapPath(p + "/App_Data/");
             *  paramlar.Add("path", filepath);
             *
             */
            paramlar.Add("path", Application.StartupPath);

            bool succ = init.Intitial(paramlar);

            if (!succ)
            {
                MessageBox.Show("دەسلەپلەشتۈرۈش جەريانىدا خاتالىق كۆرۈلدى");
                Application.Exit();
            }
        }
Ejemplo n.º 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            _spellChecker = new Net.Uyghurdev.Spelling.TextBasedSpellChecker();

            Net.Uyghurdev.Spelling.Interfaces.IInitialable init
                = ((Net.Uyghurdev.Spelling.TextBasedSpellChecker)_spellChecker) as Net.Uyghurdev.Spelling.Interfaces.IInitialable;

            Dictionary<string, object> paramlar = new Dictionary<string, object>();
            
            //soz ammarlirining turux orininining adrisini "path" ning value si kilip yollap berix kerek.  masilan:  "c:\spel\words\"
            /*
             
                string p = HttpContext.Current.Request.ApplicationPath;
                if (p == "/")
                p = "";
                string filepath = Server.MapPath(p + "/App_Data/");
                paramlar.Add("path", filepath);
             
             */
            paramlar.Add("path", Application.StartupPath);

            bool succ = init.Intitial(paramlar);
            
            if (!succ)
            {
                MessageBox.Show("دەسلەپلەشتۈرۈش جەريانىدا خاتالىق كۆرۈلدى");
                Application.Exit();
            }
        }