public FindAndReplaceForm()
{
InitializeComponent();
contextMenuStripFindHistory = new ContextMenuStrip
{
ShowImageMargin = false,
AutoSize = true
};
contextMenuStripFindHistory.ItemClicked += contextMenuStripFindHistory_ItemClicked;
contextMenuStripReplaceHistory = new ContextMenuStrip
{
ShowImageMargin = false,
AutoSize = true
};
contextMenuStripReplaceHistory.ItemClicked += contextMenuStripReplaceHistory_ItemClicked;
buttonFindHistory.Enabled = false;
buttonReplaceHistory.Enabled = false;
checkBoxSearchFromBegining.Text = SearchFromBeginingText;
var searchInOptions = new List<string>(EnumUtils.GetEnumDescriptions<SearchInOptions>().Values);
comboBoxSearchIn.DataSource = searchInOptions;
textBoxFind.KeyPress += textBox_KeyPress;
//textBoxFind.KeyDown += textBox_KeyDown;
textBoxReplace.KeyPress += textBox_KeyPress;
//textBoxReplace.KeyDown += textBox_KeyDown;
}