-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfindForm.cs
More file actions
44 lines (39 loc) · 1.34 KB
/
findForm.cs
File metadata and controls
44 lines (39 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace RTFPad
{
public partial class findForm : Form
{
public findForm()
{
InitializeComponent();
}
private void findTextBox_TextChanged(object sender, EventArgs e)
{
if (this.textBoxFind.Text.Length > 0) this.buttonFind.Enabled = true;
else this.buttonFind.Enabled = false;
}
private void buttonCancel_Click(object sender, EventArgs e)
{
this.Close();
}
private void buttonFind_Click(object sender, EventArgs e)
{
if (((rtfPadForm)this.Owner).tabControl.TabCount <= 0) return;
if (((rtfPadForm)this.Owner).findText(this.textBoxFind.Text,
this.radioButtonDown.Checked,
this.checkBoxMatchCase.Checked) == false)
{
MessageBox.Show("Can't find \'" + this.textBoxFind.Text + "\'", "Find",
MessageBoxButtons.OK,
MessageBoxIcon.Information,
MessageBoxDefaultButton.Button1);
}
}
}
}