当前位置: 首页>>代码示例>>C#>>正文


C# Connection.ConnectionTag类代码示例

本文整理汇总了C#中Poderosa.Connection.ConnectionTag的典型用法代码示例。如果您正苦于以下问题:C# ConnectionTag类的具体用法?C# ConnectionTag怎么用?C# ConnectionTag使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ConnectionTag类属于Poderosa.Connection命名空间,在下文中一共展示了ConnectionTag类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ClearTimerToConnectionTag

 public void ClearTimerToConnectionTag(ConnectionTag ct)
 {
     if(ct.Timer!=null) {
         ct.Timer.Dispose();
         ct.Timer = null;
     }
 }
开发者ID:nospy,项目名称:EasyConnect,代码行数:7,代码来源:KeepAlive.cs

示例2: PasteProcessor

 public PasteProcessor(ConnectionTag tag, string text)
 {
     _tag = tag;
     StringReader r = new StringReader(text);
     Fill(r);
     r.Close();
 }
开发者ID:rfyiamcool,项目名称:solrex,代码行数:7,代码来源:Paste.cs

示例3: XTerm

 public XTerm(ConnectionTag tag, ICharDecoder decoder)
     : base(tag, decoder)
 {
     _wrapAroundMode = true;
     _tabStops = new bool[tag.Connection.TerminalWidth];
     InitTabStops();
 }
开发者ID:VirusFree,项目名称:VFTerminal,代码行数:7,代码来源:XTerm.cs

示例4: CloseConnection

 public void CloseConnection(ConnectionTag tag)
 {
     _connection = tag.Connection;
     lock(this) {
         SendMessageCore(CService.CloseConnection);
     }
 }
开发者ID:nospy,项目名称:EasyConnect,代码行数:7,代码来源:ContainerInterThread.cs

示例5: ActivateConnection

 public void ActivateConnection(ConnectionTag tag)
 {
     lock(this) {
         _connection = tag.Connection;
         SendMessageCore(CService.ActivateConnection);
     }
 }
开发者ID:nospy,项目名称:EasyConnect,代码行数:7,代码来源:ContainerInterThread.cs

示例6: VT100Terminal

 public VT100Terminal(ConnectionTag tag, ICharDecoder decoder)
     : base(tag, decoder)
 {
     _insertMode = false;
     _scrollRegionRelative = false;
     bool sfu = tag.Connection.Param is SFUTerminalParam;
     _homePositionOnCSIJ2 = sfu;
 }
开发者ID:rfyiamcool,项目名称:solrex,代码行数:8,代码来源:VT100.cs

示例7: EmulateWithLog

 //�f�o�b�O�p�ɁA�O����XML�`�����O��ǂ�ŃG�~�����[�g�����
 public static void EmulateWithLog(XmlReader reader, ConnectionTag tag)
 {
     ITerminal term = tag.Terminal;
     TerminalDocument doc = tag.Document;
     StringBuilder buf = new StringBuilder();
     reader.ReadStartElement("terminal-log");
     try {
         do {
             if(reader.NodeType==XmlNodeType.Text || reader.NodeType==XmlNodeType.Whitespace)
                 buf.Append(reader.Value);
             else if(reader.NodeType==XmlNodeType.Element) {
                 if(reader.Name=="ESC") {
                     buf.Append((char)0x1B);
                     buf.Append(reader.GetAttribute("seq"));
                 }
                 else if(reader.Name=="BS")
                     buf.Append((char)0x8);
                 else if(reader.Name=="BEL")
                     buf.Append((char)0x7);
                 else if(reader.Name=="dump") {
                     buf = Flush(tag, buf);
                     doc.Dump(reader.GetAttribute("title"));
                 }
                 else if(reader.Name=="comment") {
                     buf = Flush(tag, buf);
                     while(reader.NodeType!=XmlNodeType.EndElement || reader.Name!="comment") {
                         reader.Read();
                         if(reader.NodeType==XmlNodeType.Text)
                             GEnv.InterThreadUIService.Warning(doc, reader.Value);
                     }
                 }
                 else if(reader.Name=="break") {
                     Debug.WriteLine("BREAK "+reader.GetAttribute("title"));
                     Debugger.Break();
                     buf = Flush(tag, buf);
                 }
                 else if(reader.Name=="PD") {
                     buf = Flush(tag, buf);
                 }
                 else if(reader.Name=="pause") {
                     buf = Flush(tag, buf);
                     GEnv.InterThreadUIService.Warning(doc, reader.GetAttribute("title"));
                 }
                 else if(reader.Name!="SI" && reader.Name!="SO" && reader.Name!="NUL" && reader.Name!="terminal-size")
                     Debug.WriteLine("Unsupported element "+reader.Name);
             }
             else if(reader.NodeType==XmlNodeType.EndElement) {
                 if(reader.Name=="terminal-log") {
                     Flush(tag, buf);
                 }
             }
         } while(reader.Read());
     }
     catch(Exception ex) {
         Debug.WriteLine(ex.Message);
         Debug.WriteLine(ex.StackTrace);
     }
 }
开发者ID:nospy,项目名称:EasyConnect,代码行数:59,代码来源:TestUtil.cs

示例8: AbstractTerminal

 /// <summary>
 /// ����̑ΏۂɂȂ�h�L�������g�ƕ����̃G���R�[�f�B���O��w�肵�č\�z
 /// </summary>
 public AbstractTerminal(ConnectionTag tag, ICharDecoder decoder)
 {
     _tag = tag;
     _decoder = decoder;
     _terminalMode = TerminalMode.Normal;
     _currentdecoration = TextDecoration.Default;
     _manipulator = new GLineManipulator(80);
     _bufferForMacro = new StringBuilder();
     _signalForMacro = new AutoResetEvent(false);
 }
开发者ID:nospy,项目名称:EasyConnect,代码行数:13,代码来源:TerminalBase.cs

示例9: SetTimerToConnectionTag

 public void SetTimerToConnectionTag(ConnectionTag ct)
 {
     if(GEnv.Options.KeepAliveInterval==0) {
         if(ct.Timer!=null) {
             ct.Timer.Dispose();
             ct.Timer = null;
         }
     }
     else {
         if(ct.Timer==null)
             ct.Timer = new Timer(new TimerCallback(OnTimer), ct, GEnv.Options.KeepAliveInterval, Timeout.Infinite);
         else
             ct.Timer.Change(GEnv.Options.KeepAliveInterval, Timeout.Infinite);
     }
 }
开发者ID:nospy,项目名称:EasyConnect,代码行数:15,代码来源:KeepAlive.cs

示例10: SetConnectionLocation

 public void SetConnectionLocation(ConnectionTag ct, IPoderosaTerminalPane pane)
 {
     if(ct.AttachedPane==null) { //��\���̂Ƃ�
         ct.PositionIndex = GetPaneIndex(pane);
         ct.PreservedPositionIndex = ct.PositionIndex; //�蓮�Őݒ肳�ꂽ�Ƃ��͂����ւ�L�^
         ActivateConnection(ct);
     }
     else {
         ActivateConnection(ct);
         MovePane(ct, GetPaneIndex(pane));
     }
 }
开发者ID:rfyiamcool,项目名称:solrex,代码行数:12,代码来源:MultiPaneControl.cs

示例11: Flush

        private static StringBuilder Flush(ConnectionTag tag, StringBuilder buf)
        {
            char[] data = buf.ToString().ToCharArray();
            tag.Terminal.Input(data, 0, data.Length);
            tag.Pane.DataArrived();

            return new StringBuilder();
        }
开发者ID:nospy,项目名称:EasyConnect,代码行数:8,代码来源:TestUtil.cs

示例12: SuccessfullyExit

 //ISocketWithTimeoutClient �����͂��̃E�B���h�E�Ƃ͕ʂ̃X���b�h�Ŏ��s�����̂ŐT�d��
 public void SuccessfullyExit(object result)
 {
     _result = (ConnectionTag)result;
     //_result.SetServerInfo(((TCPTerminalParam)_result.Param).Host, swt.IPAddress);
     Win32.SendMessage(_savedHWND, GConst.WMG_ASYNCCONNECT, IntPtr.Zero, new IntPtr(1));
 }
开发者ID:nospy,项目名称:EasyConnect,代码行数:7,代码来源:CygwinLoginDialog.cs

示例13: AddNewTerminalInternal

        //TerminalConnection
        protected override void AddNewTerminalInternal(ConnectionTag con)
        {
            GApp.ConnectionHistory.Update(con.Connection.Param);
            _frame.AddConnection(con);
            _frame.AdjustMRUMenu();

            ActivateConnection(con.Connection);
            _frame.RefreshConnection(con);
        }
开发者ID:devalacarte,项目名称:stage_wifi_lab_automatisation,代码行数:10,代码来源:ContainerCommandTarget.cs

示例14: ShowContextMenu

 public void ShowContextMenu(System.Drawing.Point pt, ConnectionTag ct)
 {
     GApp.Frame.CommandTargetConnection = ct.Connection;
     //���j���[��UI����
     GApp.Frame.AdjustContextMenu(true, ct.Connection);
     GApp.Frame.ContextMenu.Show(GApp.Frame, pt);
 }
开发者ID:rfyiamcool,项目名称:solrex,代码行数:7,代码来源:GApp.cs

示例15: ActivateConnection

 public void ActivateConnection(ConnectionTag ct)
 {
     GApp.GlobalCommandTarget.ActivateConnection2(ct);
 }
开发者ID:nospy,项目名称:EasyConnect,代码行数:4,代码来源:GApp.cs


注:本文中的Poderosa.Connection.ConnectionTag类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。