public void OnOption() { pluginServer.ExecuteCommand(Commands.SetModalState, true); try { using (MigemoOptionForm mof = new MigemoOptionForm(pathDLL, pathDic, fPartialMatch)) { if (DialogResult.OK == mof.ShowDialog()) { pathDLL = mof.pathDLL; pathDic = mof.pathDic; fPartialMatch = mof.fPartialMatch; using (RegistryKey rkMigemo = Registry.CurrentUser.CreateSubKey(CONSTANTS.REGISTRY_PLUGINSETTINGS + "\\MigemoLoader")) { if (rkMigemo != null) { rkMigemo.SetValue("dll", pathDLL); rkMigemo.SetValue("dic", pathDic); rkMigemo.SetValue("PartialMatch", fPartialMatch ? 1 : 0); } } } } } finally { pluginServer.ExecuteCommand(Commands.SetModalState, false); } }
public void OnOption() { pluginServer.ExecuteCommand(Commands.SetModalState, true); try { using(MigemoOptionForm mof = new MigemoOptionForm(pathDLL, pathDic, fPartialMatch)) { if(DialogResult.OK == mof.ShowDialog()) { pathDLL = mof.pathDLL; pathDic = mof.pathDic; fPartialMatch = mof.fPartialMatch; using(RegistryKey rkMigemo = Registry.CurrentUser.CreateSubKey(CONSTANTS.REGISTRY_PLUGINSETTINGS + "\\MigemoLoader")) { if(rkMigemo != null) { rkMigemo.SetValue("dll", pathDLL); rkMigemo.SetValue("dic", pathDic); rkMigemo.SetValue("PartialMatch", fPartialMatch ? 1 : 0); } } } } } finally { pluginServer.ExecuteCommand(Commands.SetModalState, false); } }