Exemple #1
0
 //-------------------------------------------------------------------------------
 //
 private void TwitMenu_SpecifyTimeTweetRequest_Click(object sender, TwitRowMenuEventArgs e)
 {
     using (FrmGetTweet frm = new FrmGetTweet()) {
         frm.EnableDateTimeTo = true;
         frm.DateTimeTo = e.TwitData.Time;
         if (frm.ShowDialog() == DialogResult.OK) {
             tssLabel.SetText(STR_GETTING_STATUS);
             Utilization.InvokeTransaction(
                 () => GetSpecifyTimeTweets((UctlDispTwit)sender, frm.EnableDateTimeFrom, frm.DateTimeFrom, frm.EnableDateTimeTo, frm.DateTimeTo),
                 () => tssLabel.RemoveText(STR_GETTING_STATUS)
             );
         }
     }
 }
Exemple #2
0
        //-------------------------------------------------------------------------------
        //
        private void tsmiSpecifyTime_Click(object sender, EventArgs e)
        {
            using (FrmGetTweet frm = new FrmGetTweet()) {
                if (frm.ShowDialog() == DialogResult.OK) {
                    tssLabel.SetText(STR_GETTING_STATUS);
                    Utilization.InvokeTransaction(
                        () => GetSpecifyTimeTweets(SelectedUctlDispTwit(), frm.EnableDateTimeFrom, frm.DateTimeFrom, frm.EnableDateTimeTo, frm.DateTimeTo),
                        () => tssLabel.RemoveText(STR_GETTING_STATUS)
                    );

                }
            }
        }