Beispiel #1
0
        private void buttonStart_Click(object sender, EventArgs e)
        {
            if (editURL.Text == string.Empty)
            {
                MessageBox.Show("You must enter a valid picasa album rss url");
                return;
            }

            if (editPath.Text == string.Empty || !Directory.Exists(editPath.Text))
            {
                MessageBox.Show("Invalid path");
                return;
            }

            Guid id = Guid.NewGuid();

            _grabbersList.Add(id);

            StateWindow window = new StateWindow(id);

            window.Show();

            Grabber grabObj = new Grabber(id, editURL.Text, editPath.Text);
            Thread  th      = new Thread(grabObj.grabberMain);

            th.Start();
        }
        private void buttonStart_Click(object sender, EventArgs e)
        {
            if (editURL.Text == string.Empty)
            {
                MessageBox.Show("You must enter a valid picasa album rss url");
                return;
            }

            if (editPath.Text == string.Empty || !Directory.Exists(editPath.Text))
            {
                MessageBox.Show("Invalid path");
                return;
            }

            Guid id = Guid.NewGuid();
            _grabbersList.Add(id);

            StateWindow window = new StateWindow(id);
            window.Show();

            Grabber grabObj = new Grabber(id, editURL.Text, editPath.Text);
            Thread th = new Thread(grabObj.grabberMain);
            th.Start();
        }