Beispiel #1
0
 private void toolStripMenuItemViewBuiltInWords_Click(object sender, EventArgs e)
 {
     using (var manageWords = new ManageWordsForm())
         using (var resourceStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("Nikse.SubtitleEdit.PluginLogic.WordList.xml"))
         {
             manageWords.Initialize(resourceStream);
             manageWords.ShowDialog(this);
         }
 }
Beispiel #2
0
        private void toolStripMenuItemManageLocalwords_Click(object sender, EventArgs e)
        {
            if (!File.Exists(_localFileName))
            {
                return;
            }
            using (var manageWords = new ManageWordsForm())
            {
                manageWords.Initialize(_localFileName);
                manageWords.ShowDialog(this);
            }

            if (radioButtonLocalList.Checked)
            {
                radioButtonLocalList_Click(null, null);
            }
            if (radioButtonBothLists.Checked)
            {
                radioButtonBothLists_Click(null, null);
            }
        }