Пример #1
0
        /// <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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }