public RemoveTextForHISettings GetSettings()
 {
     var settings = new RemoveTextForHISettings();
     settings.OnlyIfInSeparateLine = checkBoxOnlyIfInSeparateLine.Checked;
     settings.RemoveIfAllUppercase = checkBoxRemoveIfAllUppercase.Checked;
     settings.RemoveTextBeforeColon = checkBoxRemoveTextBeforeColon.Checked;
     settings.RemoveTextBeforeColonOnlyUppercase = checkBoxRemoveTextBeforeColonOnlyUppercase.Checked;
     settings.ColonSeparateLine  = checkBoxColonSeparateLine.Checked;
     settings.RemoveWhereContains  = checkBoxRemoveWhereContains.Checked;
     settings.RemoveIfTextContains  = comboBoxRemoveIfTextContains.Text;
     settings.RemoveTextBetweenCustomTags  = checkBoxRemoveTextBetweenCustomTags.Checked;
     settings.RemoveInterjections  = checkBoxRemoveInterjections.Checked;
     settings.RemoveTextBetweenSquares  = checkBoxRemoveTextBetweenSquares.Checked;
     settings.RemoveTextBetweenBrackets  = checkBoxRemoveTextBetweenBrackets.Checked;
     settings.RemoveTextBetweenQuestionMarks  = checkBoxRemoveTextBetweenQuestionMarks.Checked;
     settings.RemoveTextBetweenParentheses  = checkBoxRemoveTextBetweenParentheses.Checked;
     settings.CustomStart = comboBoxCustomStart.Text;
     settings.CustomEnd = comboBoxCustomEnd.Text;
     return settings;
 }
示例#2
0
 public RemoveTextForHI(RemoveTextForHISettings removeTextForHISettings)
 {
     Settings = removeTextForHISettings;
 }
 public RemoveTextForHISettings GetSettings()
 {
     var settings = new RemoveTextForHISettings
     {
         OnlyIfInSeparateLine = checkBoxOnlyIfInSeparateLine.Checked,
         RemoveIfAllUppercase = checkBoxRemoveIfAllUppercase.Checked,
         RemoveTextBeforeColon = checkBoxRemoveTextBeforeColon.Checked,
         RemoveTextBeforeColonOnlyUppercase = checkBoxRemoveTextBeforeColonOnlyUppercase.Checked,
         ColonSeparateLine = checkBoxColonSeparateLine.Checked,
         RemoveWhereContains = checkBoxRemoveWhereContains.Checked,
         RemoveIfTextContains = new List<string>(),
         RemoveTextBetweenCustomTags = checkBoxRemoveTextBetweenCustomTags.Checked,
         RemoveInterjections = checkBoxRemoveInterjections.Checked,
         RemoveTextBetweenSquares = checkBoxRemoveTextBetweenSquares.Checked,
         RemoveTextBetweenBrackets = checkBoxRemoveTextBetweenBrackets.Checked,
         RemoveTextBetweenQuestionMarks = checkBoxRemoveTextBetweenQuestionMarks.Checked,
         RemoveTextBetweenParentheses = checkBoxRemoveTextBetweenParentheses.Checked,
         CustomStart = comboBoxCustomStart.Text,
         CustomEnd = comboBoxCustomEnd.Text
     };
     foreach (string item in comboBoxRemoveIfTextContains.Text.Split(new[] { ',', ';' }, StringSplitOptions.RemoveEmptyEntries))
     {
         settings.RemoveIfTextContains.Add(item.Trim());
     }
     return settings;
 }
示例#4
0
 public RemoveTextForHI(RemoveTextForHISettings removeTextForHISettings)
 {
     Settings = removeTextForHISettings;
 }
 private static RemoveTextForHI GetRemoveTextForHiLib()
 {
     var hiSettings = new RemoveTextForHISettings();
     return new RemoveTextForHI(hiSettings);
 }