mirror of
https://github.com/cyberark/PipeViewer
synced 2026-06-06 15:34:28 +00:00
36 lines
1018 B
C#
36 lines
1018 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace PipeViewer
|
|
{
|
|
public partial class FormSearch : Form
|
|
{
|
|
public delegate void searchEventHandler(string i_SearchString, bool i_SearchDown, bool i_MatchWholeWord, bool i_MatchSensitive);
|
|
|
|
public event searchEventHandler searchForMatch;
|
|
|
|
public FormSearch()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void buttonCancel_Click(object sender, EventArgs e)
|
|
{
|
|
this.Close();
|
|
}
|
|
|
|
public virtual void OnSearchForMatch(string i_SearchString, bool i_SearchDown, bool i_MatchWholeWord, bool i_MatchSensitive)
|
|
{
|
|
if (searchForMatch != null)
|
|
{
|
|
searchForMatch.Invoke(i_SearchString, i_SearchDown, i_MatchWholeWord, i_MatchSensitive);
|
|
}
|
|
}
|
|
|
|
private void buttonFind_Click(object sender, EventArgs e)
|
|
{
|
|
OnSearchForMatch(comboBox1.Text, radioButtonDown.Checked, false, false);
|
|
}
|
|
}
|
|
}
|