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; }
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; }
private static RemoveTextForHI GetRemoveTextForHiLib() { var hiSettings = new RemoveTextForHISettings(); return new RemoveTextForHI(hiSettings); }