Exemplo n.º 1
0
        /// <summary>
        /// some routines need to do setup. We pass the path in case they need it
        /// </summary>
        /// <param name="_path"></param>
        public override void Setup(string _path, NamingFileClass namingFile)
        {
            path = _path;
            speller = SpellCheckObject("en-US.dic", _path, Path.Combine(_path, "UserDic.dic"));
            try
            {
                speller.Dictionary.Initialize();
            }
            catch (Exception ex)
            {
                NewMessage.Show(ex.ToString());
            }
            try
            {
                randomwordhash = speller.Dictionary.BaseWords;
            }
            catch(Exception ex)
            {
                NewMessage.Show(ex.ToString());
            }

            // namingFile is ignored here used in erarulelanguage
        }
Exemplo n.º 2
0
 /// <summary>
 /// some routines need to do setup. We pass the path in case they need it
 /// </summary>
 /// <param name="_path"></param>
 public virtual void Setup(string _path, NamingFileClass namingFile)
 {
 }
Exemplo n.º 3
0
        /// <summary>
        /// some routines need to do setup. We pass the path in case they need it
        /// </summary>
        /// <param name="_path"></param>
        public override void Setup(string _path, NamingFileClass namingFile)
        {
            path = _path;
            _namingFile = namingFile;

            newRandom = new Random(DateTime.Now.Millisecond);
        }