예제 #1
0
        //Clone, ‚Å‚àIConeable‚Å‚Í‚È‚¢BListener—ނ̓Rƒs[‚µ‚È‚¢B
        public virtual ITerminalSettings Clone()
        {
            TerminalSettings t = new TerminalSettings();

            t.Import(this);
            return(t);
        }
        public ITerminalSettings CreateDefaultTerminalSettings(string caption)
        {
            TerminalSettings t = new TerminalSettings();

            t.BeginUpdate();
            //t.Icon = icon;
            t.Caption = caption;
            //t.EnabledCharTriggerIntelliSense = GEnv.Options.EnableComplementForNewConnections;
            t.EndUpdate();
            return(t);
        }
예제 #3
0
        //ListenerˆÈŠO‚ðŽ‚Á‚Ä‚­‚é
        public virtual void Import(ITerminalSettings src)
        {
            _encoding     = src.Encoding;
            _terminalType = src.TerminalType;
            _localecho    = src.LocalEcho;
            _lineFeedRule = src.LineFeedRule;
            _transmitnl   = src.TransmitNL;
            _caption      = src.Caption;
            //_icon = src.Icon;
            _debug = src.DebugFlag;
            TerminalSettings src_r = (TerminalSettings)src;

            _multiLogSettings = src.LogSettings == null? null : (IMultiLogSettings)_multiLogSettings.Clone();
        }