Exemplo n.º 1
0
        private void SaveShortCut(object sender, System.EventArgs e)
        {
            ContainerConnectionCommandTarget t = GApp.GetConnectionCommandTarget();

            t.SaveShortCut();
            t.Focus();
        }
Exemplo n.º 2
0
        private void ToggleLogSwitch(object sender, System.EventArgs e)
        {
            if (_blockEventHandler)
            {
                return;
            }
            ContainerConnectionCommandTarget t = GApp.GetConnectionCommandTarget();

            t.SetLogSuspended(!t.Connection.LogSuspended);
            t.Focus();
        }
Exemplo n.º 3
0
        private void LineFeedRule(object sender, System.EventArgs e)
        {
            if (_blockEventHandler)
            {
                return;
            }
            ContainerConnectionCommandTarget t = GApp.GetConnectionCommandTarget();

            t.ShowLineFeedRuleDialog();
            t.Focus();
        }
Exemplo n.º 4
0
        private void ToggleLocalEcho(object sender, System.EventArgs e)
        {
            if (_blockEventHandler)
            {
                return;
            }
            ContainerConnectionCommandTarget t = GApp.GetConnectionCommandTarget();

            t.SetLocalEcho(!t.Connection.Param.LocalEcho);
            t.Focus();
        }
Exemplo n.º 5
0
        private void ChangeEncoding(object sender, System.EventArgs e)
        {
            if (_blockEventHandler)
            {
                return;
            }
            EncodingProfile enc = EncodingProfile.Get((EncodingType)_encodingBox.SelectedIndex);
            ContainerConnectionCommandTarget t = GApp.GetConnectionCommandTarget();

            t.SetEncoding(enc);
            t.Focus();
        }
Exemplo n.º 6
0
        private void ChangeNewLine(object sender, System.EventArgs e)
        {
            if (_blockEventHandler)
            {
                return;
            }
            NewLine nl = (NewLine)_newLineOption.SelectedIndex;
            ContainerConnectionCommandTarget t = GApp.GetConnectionCommandTarget();

            t.SetTransmitNewLine(nl);
            t.Focus();
        }
Exemplo n.º 7
0
 //コマンド実行本体
 private static CommandResult Execute(Entry e)
 {
     if (e.Target == Target.Global)
     {
         return(GApp.GlobalCommandTarget.Exec(e));
     }
     else
     {
         ContainerConnectionCommandTarget t = GApp.GetConnectionCommandTarget();
         if (t == null)
         {
             return(CommandResult.Ignored);                        //アクティブなコネクションがなければ無視
         }
         return(t.Exec(e.CID));
     }
 }