Exemplo n.º 1
0
        //�ŐV��MRU���X�g�ɍX�V
        public void Update(TerminalParam newparam_)
        {
            int n = 0;
            TerminalParam newparam = (TerminalParam)newparam_.Clone();
            newparam.LogPath = "";
            newparam.LogType = LogType.None;
            foreach(TerminalParam p in _history) {
                if(p.Equals(newparam)) {
                    _history.RemoveAt(n);
                    _history.Insert(0, newparam);
                    return;
                }
                n++;
            }

            _history.Insert(0, newparam);
            //�����^�C���ɏo�Ă����␔�͖������ɂ���
            if(_history.Count > 100)
                _history.RemoveRange(GApp.Options.MRUSize, _history.Count-100);
        }
Exemplo n.º 2
0
 public void ReplaceIdenticalParam(TerminalParam newparam_)
 {
     int n = 0;
     TerminalParam newparam = (TerminalParam)newparam_.Clone();
     newparam.LogPath = "";
     newparam.LogType = LogType.None;
     foreach(TerminalParam p in _history) {
         if(p.Equals(newparam)) {
             _history[n] = newparam;
             return;
         }
         n++;
     }
 }