Beispiel #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            KT = new KhoiTao();
            lb_CheckStatusStory.Text = KT.Flag_Check_thread_is_running_Story.ToString();
            ts_fb   = new ThreadStart(Run);
            thrd_fb = new Thread(ts_fb);

            ts_gmail   = new ThreadStart(TaoTKGmail);
            thrd_gmail = new Thread(ts_gmail);

            //Disable Story
            #region "Disable Story"
            tb_VongLapStory.Enabled     = false;
            tb_Like.Enabled             = false;
            tb_Tym.Enabled              = false;
            tb_ThuongThuong.Enabled     = false;
            tb_Sad.Enabled              = false;
            tb_HAHA.Enabled             = false;
            tb_WOW.Enabled              = false;
            tb_Angry.Enabled            = false;
            btn_StopStory.Enabled       = false;
            chbtn_Like.Enabled          = false;
            chbtn_HAHA.Enabled          = false;
            chbtn_Sad.Enabled           = false;
            chbtn_ThuongThuong.Enabled  = false;
            chbtn_Tym.Enabled           = false;
            chbtn_Angry.Enabled         = false;
            chbtn_WOW.Enabled           = false;
            label6.Enabled              = false;
            lb_CheckStatusStory.Enabled = false;
            lb_CountLoop.Enabled        = false;
            #endregion

            //Disable NewFeeds
            #region "Disable NewFeeds"
            tb_SoLanLuotNF.Enabled = false;
            label7.Enabled         = false;
            lb_soLanLuotNF.Enabled = false;
            #endregion
        }
 public FromCauHinh()
 {
     KT = new KhoiTao();
     InitializeComponent();
 }