Example #1
0
        private void InitApiClient()
        {
            var token = PropertiesHelper.GetToken();

            ApiClient.SetToken(token.AccessToken);
            ApiClient.OnMethodExecuted += ApiClient_OnMethodExecuted;
        }
Example #2
0
        private void CheckLogin()
        {
            var token = PropertiesHelper.GetToken();

            if (!token.IsLogined || !token.IsValid)
            {
                this.ShowLogin();
            }
        }