public void Add(ResponserServerSettings settings) { ResponserServerSettings[] temp = new ResponserServerSettings[_rspsrvst.Length + 1]; for (int i = 0; i < _rspsrvst.Length; i++) { temp[i] = _rspsrvst[i]; } temp[temp.Length - 1] = settings; _rspsrvst = temp; }
public ResponserServerSettings getByServer(Server s, bool rtNew = false) { foreach (ResponserServerSettings stt in _rspsrvst) { if (stt.server == s) { return(stt); } } if (rtNew) { ResponserServerSettings r = new ResponserServerSettings(s, false); this.Add(r); return(r); } else { return(null); } }