/// <summary> /// Clear all Lists /// </summary> public void Reset() { _manager = null; _linkliste = new HistoryList<LinkClass>(); historyList = new List<HistoryList<LinkClass>>(); _linklisteDic = new Dictionary<GUIListItem, LinkClass>(); }
/// <summary> /// Creates an new RequestParserManager and Request it /// </summary> /// <param name="server">Server to Connect from the ServerGui</param> public void RequestServer(GUIListItem server) { if (_manager != null) { _manager.RequestAction -= _manager_RequestAction; _manager = null; } if (_serverlistDic.ContainsKey(server.Label)) { ServerListItem item = _serverlistDic[server.Label]; _manager = new RequestParserManager(item); _manager.RequestAction += new EventHandler(_manager_RequestAction); _manager.Request(null); } }