Esempio n. 1
0
 public static void ShowForm(IWin32Window dialogOwner, Options options)
 {
     var form = new OptionsForm(options);
     form.ShowDialog(dialogOwner);
 }
        /// <summary>
        /// Initializes the specified plugin options.
        /// </summary>
        /// <param name="pluginOptions">The plugin options.</param>
        public override void Initialize(IProperties pluginOptions)
        {
            // This will set the Options property
            base.Initialize(pluginOptions);

            // And we'll use a wrapper instead
            m_options = new Options(Options);

            m_resourceManger = new ResourceManager(Assembly.GetAssembly(typeof(VirastyarWLWplugin)));

            #region Create SpellChecker

            CheckDependencies();

            m_engines = new VerificationEngines<PersianSpellCheckerWithCache>(
                Path.Combine(m_basePath, "Dic.dat"),
                Path.Combine(m_basePath, "Stem.dat"),
                null, null, null);

            m_controller = new InlineVerificationController<PersianSpellCheckerWithCache>(m_engines);
            m_speller = m_engines.GetSpellCheckerEngine();

            #endregion
        }
Esempio n. 3
0
 public OptionsForm(Options options)
     : this()
 {
     m_options = options;
     UpdateUI();
 }