private void OpenUpdateForm() { if (Application.OpenForms["Dialog"] != null) { Application.OpenForms["Dialog"].Show(); } else { Dialog dForm = new Dialog(TwitterUser); dForm.ShowDialog(); dForm.Dispose(); } }
void tsReTweet_Click(object sender, EventArgs e) { ToolStripMenuItem menu_ = (ToolStripMenuItem)sender; if (menu_.Tag != null) { TweetItem ti = GetTweetItemById(menu_.Tag.ToString()); if (ti != null) { Dialog d = new Dialog(TwitterUser, ti.ItemTweet); d.ShowDialog("retweet"); d.Dispose(); } } }