private void editNCBLToolStripMenuItem_Click(object sender, EventArgs e) { bool loadSuggestionEnabled = false; if (richTextBoxNepali.SelectedText.Length > 0) { loadSuggestionEnabled = LoadSuggestions(richTextBoxNepali.SelectedText, SessionsManager.NounsCommonInBothLanguageListFileName); } if (pr == null) { pr = new PostProcessor(SessionsManager.RuleFileName, SessionsManager.VerbListFileName, SessionsManager.NounListFileName, SessionsManager.AdjectiveListFileName, SessionsManager.PronounListFileName, SessionsManager.UsersCustomFileName, SessionsManager.NounsCommonInBothLanguageListFileName); } if (ncblEditor == null || ncblEditor.IsDisposed) { nounEditor = new RuleEditor(); } ncblEditor.SetFileName(SessionsManager.NounsCommonInBothLanguageListFileName); if (loadSuggestionEnabled) { ncblEditor.LoadSuggestion(richTextBoxNepali.SelectedText); } ncblEditor.Show(); }
private void editRuleFileToolStripMenuItem_Click(object sender, EventArgs e) { if (UsersCustomEditor == null || UsersCustomEditor.IsDisposed) { UsersCustomEditor = new RuleEditor(); } UsersCustomEditor.Show(); }