private void btReplaceAll_Click(object sender, EventArgs e) { MainForm form = (MainForm)this.Owner; TextWork.ReplaceAllText(form.notebox, tbFind.Text, tbReplace.Text, CheckReg(tbReg)); }
private void notebox_TextChanged(object sender, EventArgs e) { tbChange = true; MainForm.ActiveForm.Text = string.Format("*{0} — {1}", FileWork.docName, FileWork.programmName); TextWork.Status(notebox, ref statusWordsCount, ref statusSymbolsCount); }
private void btFind_Click(object sender, EventArgs e) { MainForm form = (MainForm)this.Owner; TextWork.FindText(form.notebox, tbFind.Text, ref passedTextLength, CheckReg(tbReg)); }