Beispiel #1
0
    private void OnFindFirst(object Obj, EventArgs EA)
    {
        Index = 0;

        Index = EditManager.Find(Find.Text, Index, GetFlags());

        if (Index != -1)
        {
            FindNext.Enabled = true;
            Replace.Enabled  = true;
        }
    }
Beispiel #2
0
    private void OnFindNext(object Obj, EventArgs EA)
    {
        Index += Find.Text.Length;
        Index  = EditManager.Find(Find.Text, Index, GetFlags());

        if (Index != -1)
        {
            Replace.Enabled = true;
        }
        else
        {
            FindNext.Enabled = false;
            Replace.Enabled  = false;
        }
    }