Exemple #1
0
        private async void GDLoadFilesButton_Click(object sender, EventArgs e)
        {
            try
            {
                LoadingGDFilesPictureBox.Visible = true;

                var gdFiles = await _googleDriveService.GetAll();

                GDGridView.DataSource = gdFiles;
            }
            catch (Exception ex)
            {
                //log ex
                MessageBox.Show("System error has occurred", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            finally
            {
                LoadingGDFilesPictureBox.Visible = false;
            }
        }