Esempio n. 1
0
 void ShowThongBao()
 {
     Invoke(new Action(() =>
     {
         Movie_module.ThongBao tb = new Movie_module.ThongBao();
         tb.Show();
     }));
 }
Esempio n. 2
0
 private void Bw_DoWork(object sender, DoWorkEventArgs e)
 {
     try
     {
         Invoke(new Action(() =>
         {
             Movie_module.FrmVLC frmVlc = new Movie_module.FrmVLC(itemYTBs[tag].lbl_url.Text.ToString());
             frmVlc.lbl_name_video.Text = itemYTBs[tag].lbl_title.Text.ToString();
             frmVlc.axVLCPlugin21.playlist.stop();
             frmVlc.Show();
         }
                           ));
     }
     catch
     {
         Invoke(new Action(() =>
         {
             Movie_module.ThongBao tb = new Movie_module.ThongBao();
             tb.Show();
         }
                           ));
     }
 }