private void SetTMDbControlState() { if (InvokeRequired) { SetTMDbControlStateDelegate setTMDbState = SetTMDbControlState; Invoke(setTMDbState); return; } // we are either ready to get session id or we already have it if (!string.IsNullOrEmpty(AppSettings.TMDbRequestToken) || !string.IsNullOrEmpty(AppSettings.TMDbSessionId)) { lblTMDbMessage.Text = "Request Token and/or Session Id has already been found."; lnkTMDbStart.Text = "Disable TMDb Support"; } else { lblTMDbMessage.Text = "To get user ratings from TMDb you must first allow this application to access your account details. This needs to be done by you in a webbrowser."; lnkTMDbStart.Text = "Start Request Process"; } }
private void SetTMDbControlState() { if (this.InvokeRequired) { SetTMDbControlStateDelegate setTMDbState = new SetTMDbControlStateDelegate(SetTMDbControlState); this.Invoke(setTMDbState); return; } // we are either ready to get session id or we already have it if (!string.IsNullOrEmpty(AppSettings.TMDbRequestToken) || !string.IsNullOrEmpty(AppSettings.TMDbSessionId)) { lblTMDbMessage.Text = "Request Token and/or Session Id is already found."; lnkTMDbStart.Text = "Disable TMDb Support"; } else { lblTMDbMessage.Text = "To get user ratings from TMDb you must first allow this application to access your account details. This needs to be done by you in a webbrowser."; lnkTMDbStart.Text = "Start Request Process"; } }