TraktPlugin.GUI.GUISettingsAccount.HideAccountControls C# (CSharp) Méthode

HideAccountControls() private méthode

private HideAccountControls ( ) : void
Résultat void
        private void HideAccountControls()
        {
            Username = string.Empty;
            Password = string.Empty;
            Email = string.Empty;

            if (btnUsername != null)
                GUIControl.SetControlLabel(GetID, btnUsername.GetID, string.Empty);
            if (btnPassword != null)
                GUIControl.SetControlLabel(GetID, btnPassword.GetID, string.Empty);
            if (btnEmail != null)
                GUIControl.SetControlLabel(GetID, btnEmail.GetID, string.Empty);
            if (lblTestConnect != null)
                GUIControl.SetControlLabel(GetID, lblTestConnect.GetID, string.Empty);

            GUIUtils.SetProperty("#Trakt.Settings.Account.Dialog.Visible", "false");
            GUIWindowManager.Process();

            // Set Focus back to main window controls
            if (btnCreateNewAccount != null)
                GUIControl.FocusControl(GetID, btnCreateNewAccount.GetID);
        }