public void SetDisconnected() { m_serverInfoMgr.Clear(); IsConnected = false; IsRequestConnect = false; m_nSessionID = 0; eMachineState = MACHINE_STATE.OFFLINE; }
public bool Refresh() { LinkedListNode <MachineInfo> node = m_machineInfoMgr.MachineInfoList.First; for (; node != null; node = node.Next) { ServerInfoMgr refServerInfoMgr = node.Value.ServerInfoMgr; refServerInfoMgr.Clear(); m_commandSender.SendRequestServerList(node.Value.m_nSessionID); } return(true); }
public void ClearServerInfo(string strMachineName) { ServerInfoMgr refServerInfoMgr = m_machineInfoMgr.GetServerInfoMgr(strMachineName); if (null == refServerInfoMgr) { return; } refServerInfoMgr.Clear(); m_refView.refTreeViewCntroller.ClearServerNodes(strMachineName); }