Пример #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;
        }
    }
Пример #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;
        }
    }
Пример #3
0
 public static void Select(String NameArg)
 {
     foreach (Insert_Data Insert in Inserts)
     {
         if (Insert.Name == NameArg)
         {
             if (!GeneralRegistry.GetInsertWideFormat())
             {
                 EditManager.Insert(Insert.Content);
             }
             else if (Insert.WideContent == "")
             {
                 EditManager.Insert(Insert.Content);
             }
             else
             {
                 EditManager.Insert(Insert.WideContent);
             }
         }
     }
 }
Пример #4
0
 private void OnReplace(object Obj, EventArgs EA)
 {
     EditManager.Insert(ReplaceWith.Text);
     Replace.Enabled = false;
 }
Пример #5
0
 public void Clicked()
 {
     EditManager.Copy();
 }
Пример #6
0
 void OnClick(object Obj, EventArgs EA)
 {
     EditManager.Copy();
 }
Пример #7
0
 public void Clicked()
 {
     EditManager.RefreshColorHighlighter();
 }
Пример #8
0
 void OnClick(object Obj, EventArgs EA)
 {
     EditManager.Paste();
 }
Пример #9
0
 public void Clicked()
 {
     EditManager.Cut();
 }
Пример #10
0
 public void Clicked()
 {
     EditManager.Paste();
 }
Пример #11
0
 void OnClick(object Obj, EventArgs EA)
 {
     EditManager.SelectAll();
 }