private void button1_Click(object sender, EventArgs e)
        {
            App.Service.setUserCredentials(this.txtUser.Text, this.txtPass.Text);

            // Instantiate a SpreadsheetQuery object to retrieve spreadsheets.
            SpreadsheetQuery query = new SpreadsheetQuery();

            // Make a request to the API and get all spreadsheets.
            SpreadsheetFeed feed = App.Service.Query(query);

            if (feed.Entries.Count == 0)
            {
                MessageBox.Show("There are no spreadsheets created by this user.", "Google Spreadsheets API", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }


            App.CurrentUser     = this.txtUser.Text;
            App.CurrentPassword = this.txtPass.Text;


            var wksListForm = new WorksheetListForm();

            wksListForm.Show();
            this.Close();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            App.Service.setUserCredentials(this.txtUser.Text, this.txtPass.Text);

            // Instantiate a SpreadsheetQuery object to retrieve spreadsheets.
            SpreadsheetQuery query = new SpreadsheetQuery();

            // Make a request to the API and get all spreadsheets.
            SpreadsheetFeed feed = App.Service.Query(query);

            if (feed.Entries.Count == 0)
            {
                MessageBox.Show("There are no spreadsheets created by this user.","Google Spreadsheets API", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            App.CurrentUser = this.txtUser.Text;
            App.CurrentPassword = this.txtPass.Text;

            var wksListForm = new WorksheetListForm();

            wksListForm.Show();
            this.Close();
        }
 private void button1_Click(object sender, RibbonControlEventArgs e)
 {
     var wksForm = new WorksheetListForm();
     wksForm.Show();
 }