private void settingsToolStripMenuItem1_Click(object sender, EventArgs e) { userAPI window = new userAPI(); window.ShowDialog(); }
private void buttonSettings_Click(object sender, EventArgs e) { userAPI window = new userAPI(); window.ShowDialog(); if (window.DialogResult == DialogResult.OK) { try { this.bindingSrcTweets.DataSource = TweetAPI.GetFromAPI(); this.toolStripStatusNumTweets.Text = "Loaded tweets: " + this.bindingSrcTweets.Count.ToString(); } catch (Exception ex) { MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message); } } }