Exemplo n.º 1
0
        private void NetworkLogin()
        {
            try
            {
                if (_NetworkSetting != null && _NetworkSetting.IsAuthenticated)
                {
                    //_NetworkSetting.LogOut();
                    DnsServiceManager.LogOut(_NetworkSetting);
                    //txtServiceUrl.ReadOnly = txtUsername.ReadOnly = txtPassword.ReadOnly = false;
                    //btnLogOut.Visible = false;
                    //btnTestConnection.Visible = true;
                    btnRefreshDMlist.Enabled = false;

                    //RefreshNetworlListDelegate();
                }
            }
            catch (Exception ex)
            {
                //if (_NetworkSetting != null && !_NetworkSetting.IsAuthenticated)
                //    txtServiceUrl.ReadOnly = txtUsername.ReadOnly = txtPassword.ReadOnly = true;

                throw ex;
            }
        }