示例#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
文件: M_Copy.CS 项目: HumMod/editor
 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
文件: T_Paste.CS 项目: HumMod/editor
 public void Clicked()
 {
     EditManager.Paste();
 }
示例#11
0
 void OnClick(object Obj, EventArgs EA)
 {
     EditManager.SelectAll();
 }