/// <summary> /// 檢查伺服器狀態 /// </summary> /// <returns></returns> private bool MyNetworkPlacesTest() { if (_PathServer.Length <= 0) { return(false); } NetTranslate.KillLink(_PathServer); if (NetTranslate.connectState(_PathServer, _Account, _PW) == false) { return(false); } return(true); }
private bool MyNetworkPlacesTest(string Path, bool isClose) { NetTranslate.KillLink(tbPathServer.Text); if (NetTranslate.connectState(Path, tbAccount.Text, tbPW.Text) == false) { return(false); } if (isClose) { NetTranslate.KillLink(tbPathServer.Text); } return(true); }
private static bool MyNetworkPlacesTest(string ServerPath) { string Account = string.Empty; string PW = string.Empty; DaoSQL.Instance.GetServerAccount(out Account, out PW); NetTranslate.KillLink(ServerPath); if (NetTranslate.connectState(ServerPath, Account, PW) == false) { return(false); } NetTranslate.KillLink(ServerPath); return(true); }