コード例 #1
0
ファイル: CmdAppend.cs プロジェクト: xiaoxiongnpu/ViSD
 public override void Execute(object arg)
 {
     ViSDGlobalCount.ResetCommand();
     ViSDGlobalText.UpdateMove(movecur, arg);
     movecur.Execute(arg);
     ViSDGlobalState.State = State.Insert;
 }
コード例 #2
0
ファイル: CmdReplaceString.cs プロジェクト: xiaoxiongnpu/ViSD
        public void Execute(object arg)
        {
            TextArea ta;

            if ((ta = arg as TextArea) != null)
            {
                IViCommand rep = new CmdRepeatReplaceString(ta.Selection.Length);
                ViSDGlobalText.UpdateMove(rep, arg);
                ta.Selection.ReplaceSelectionWithText(ta, "");
                ViSDGlobalState.State = State.Insert;
            }
        }
コード例 #3
0
 public void Execute(object arg)
 {
     ViSDGlobalText.Reset();
     ViSDGlobalCount.ResetCommand();
     ViSDGlobalState.State = State.Insert;
 }