Ejemplo n.º 1
0
        void m_gAuth_ResponseReceived(object sender, RscGoogleAuthEventArgs e)
        {
            DoLoad(m_tiLoading, e.Content,
                   e.Uri, e.ContentType, true);

            m_tiLoading.Loading = false;

            //VERY SLOW!!!
            //m_aTI.Refresh();

            m_tiLoading = null;
        }
Ejemplo n.º 2
0
        void m_gAuth_ResponseReceived(object sender, RscGoogleAuthEventArgs e)
        {
            bool bAddRootContainers;

            DoLoad(m_tiLoading, e.Content,
                   e.Uri, e.ContentType, true, out bAddRootContainers);

            m_tiLoading.Loading = false;

            //VERY SLOW!!!
            //m_aTI.Refresh();

            m_tiLoading = null;

            if (bAddRootContainers)
            {
                AddRootContainers();
            }
        }
Ejemplo n.º 3
0
        void m_gAuth_ResponseReceived(object sender, RscGoogleAuthEventArgs e)
        {
            string      sErr     = "";
            RscJSonItem jsonRoot = null;

            jsonRoot = RscJSon.FromResponseContetn(jsonRoot, e.Content, out sErr, e.Uri, e.ContentType);
            if (sErr.Length > 0)
            {
                //OnDone( -101 );

                // If m_gAuth_AuthenticationFailed has called,
                // this will called too!!!
                OnDone(ciAuthFail);

                return;
            }

            string sErrorCode = "";

            if (jsonRoot.ChildCount > 0)
            {
                if (jsonRoot.GetChild(0).Name == "error")
                {
                    OnDone(-102);
                    return;
                }
            }

            string sPath = AppLogic.csSecretsFolder + "\\" + m_sUserIDlast;

            //Saving threads to have older thread content...
            int iNew = AppLogic.SaveThreadData(true, sPath, jsonRoot);

            OnDone(iNew);

            //MessageBox.Show( "Completed..." );
        }