Ejemplo n.º 1
0
        private void StartThread(Pixiv pixiv)
        {
            this.StatusLabel.Text = "Status: ";

            adultContent = comboBoxAdultContent.SelectedIndex == 1;
            imageSearchOption = (Pixiv.ImageSearchOptions)comboBoxImageTypes.SelectedItem;
            backgroundWorker1.RunWorkerAsync(pixiv);
            button1.Enabled = false;
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                pixiv = new Pixiv(textBoxUsername.Text, textBoxPassword.Text);
            }
            catch
            {
                MessageBox.Show("Incorrect password or username!");
                return;
            }

            try
            {
                pagesToDownload = Convert.ToInt32(textBoxPages.Text);
            }
            catch
            {
                MessageBox.Show("Error parsing the amount of pages to download!");
                return;
            }

            StartThread(pixiv);
        }