Ejemplo n.º 1
0
        private void frmJunoSistema_Load(object sender, EventArgs e)
        {
            timer1.Enabled = true;

            if (JunoSystem.Properties.Settings.Default.GoogleDriveOption != "")
            {
                LGoogleDriveOption = JunoSystem.Properties.Settings.Default.GoogleDriveOption.ToString();
            }

            if (LGoogleDriveOption != "0")
            {
                ServiceDriveAPI objDriveApi = new ServiceDriveAPI();

                //Seach Credenciais
                LCredenciais = objDriveApi.Autenticar();

                //OpenService
                LServico = objDriveApi.AbrirServico(LCredenciais);

                if (LCredenciais == null || LServico == null)
                {
                    lblStatus.Text = "Connected";
                }
            }
        }