예제 #1
0
        private void settingsToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            userAPI window = new userAPI();
            window.ShowDialog();

        }
예제 #2
0
        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);
                }

            }
        }