Ejemplo n.º 1
0
        private void buttonEditInterjections_Click(object sender, EventArgs e)
        {
            Interjections editInterjections = new Interjections();

            editInterjections.Initialize(Configuration.Settings.Tools.Interjections);
            if (editInterjections.ShowDialog(this) == DialogResult.OK)
            {
                Configuration.Settings.Tools.Interjections = editInterjections.GetInterjectionsSemiColonSeperatedString();
                if (checkBoxRemoveInterjections.Checked)
                {
                    Cursor = Cursors.WaitCursor;
                    GeneratePreview();
                    Cursor = Cursors.Default;
                }
            }
        }
Ejemplo n.º 2
0
 private void buttonEditInterjections_Click(object sender, EventArgs e)
 {
     using (var editInterjections = new Interjections())
     {
         editInterjections.Initialize(Configuration.Settings.Tools.Interjections);
         if (editInterjections.ShowDialog(this) == DialogResult.OK)
         {
             Configuration.Settings.Tools.Interjections = editInterjections.GetInterjectionsSemiColonSeparatedString();
             _removeTextForHiLib.ReloadInterjection();
             if (checkBoxRemoveInterjections.Checked)
             {
                 GeneratePreview();
             }
         }
     }
 }
 private void buttonEditInterjections_Click(object sender, EventArgs e)
 {
     Interjections editInterjections = new Interjections();
     editInterjections.Initialize(Configuration.Settings.Tools.Interjections);
     if (editInterjections.ShowDialog(this) == DialogResult.OK)
     {
         Configuration.Settings.Tools.Interjections = editInterjections.GetInterjectionsSemiColonSeperatedString();
         if (checkBoxRemoveInterjections.Checked)
         {
             Cursor = Cursors.WaitCursor;
             GeneratePreview();
             Cursor = Cursors.Default;
         }
     }
 }
 private void buttonEditInterjections_Click(object sender, EventArgs e)
 {
     using (var editInterjections = new Interjections())
     {
         editInterjections.Initialize(Configuration.Settings.Tools.Interjections);
         if (editInterjections.ShowDialog(this) == DialogResult.OK)
         {
             Configuration.Settings.Tools.Interjections = editInterjections.GetInterjectionsSemiColonSeperatedString();
             _removeTextForHiLib.ResetInterjections();
             if (checkBoxRemoveInterjections.Checked)
             {
                 GeneratePreview();
             }
         }
     }
 }