Esempio n. 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;
        }
    }
Esempio n. 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;
        }
    }
Esempio n. 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);
             }
         }
     }
 }
Esempio n. 4
0
 private void OnReplace(object Obj, EventArgs EA)
 {
     EditManager.Insert(ReplaceWith.Text);
     Replace.Enabled = false;
 }
Esempio n. 5
0
 public void Clicked()
 {
     EditManager.Copy();
 }
Esempio n. 6
0
 void OnClick(object Obj, EventArgs EA)
 {
     EditManager.Copy();
 }
Esempio n. 7
0
 public void Clicked()
 {
     EditManager.RefreshColorHighlighter();
 }
Esempio n. 8
0
 void OnClick(object Obj, EventArgs EA)
 {
     EditManager.Paste();
 }
Esempio n. 9
0
 public void Clicked()
 {
     EditManager.Cut();
 }
Esempio n. 10
0
 public void Clicked()
 {
     EditManager.Paste();
 }
Esempio n. 11
0
 void OnClick(object Obj, EventArgs EA)
 {
     EditManager.SelectAll();
 }