Ejemplo n.º 1
0
        public void Download()
        {
            Thread t = new Thread(() =>
            {
                GetText get = new GetText();
                get.Get(this, ChapList.chapAddresses);
            });

            t.IsBackground = true;
            t.Start();

            //main.Address.Enabled = true;
            //main.ChapList.Enabled = true;
            //main.Setting.Enabled = true;
        }
Ejemplo n.º 2
0
        public void GetChapList()
        {
            Invoke(new MethodInvoker(delegate { lblStatus.Text = "Lấy danh sách chương truyện"; }));
            Invoke(new MethodInvoker(delegate { txtAddress.Enabled = false; }));
            Invoke(new MethodInvoker(delegate { btnChapList.Enabled = false; }));
            Invoke(new MethodInvoker(delegate { btnSetting.Enabled = false; }));
            address = txtAddress.Text.Trim();
            info    = new List <Info>();
            GetText g = new GetText();

            if (g.CheckAddress(address))
            {
                info = g.GetChapList(address);
                ChapList c = new ChapList(this, info);
                //c.Owner = this;
                c.ShowDialog(this);
            }
        }