Exemplo n.º 1
0
        private void BTN_Download_Click(object sender, EventArgs e)
        {
            if (BTN_Download.Text == "Download Only")
            {
                //Just going to download the updates
                foreach (DataGridViewRow item in GView_spupdates.SelectedRows)
                {
                    string product  = item.Cells[0].Value.ToString();
                    string title    = item.Cells[1].Value.ToString();
                    string kbnumber = item.Cells[3].Value.ToString();
                    log.Info("Begining download for: " + product + "(" + kbnumber + ") - " + title);

                    Update update = new Update();
                    update.DownloadUpdates(kbnumber, "./Updates/" + kbnumber);
                }
            }
            else
            {
            }
        }
Exemplo n.º 2
0
        private void BTN_Download_Click(object sender, EventArgs e)
        {
            if (BTN_Download.Text == "Download Only")
            {
                //Just going to download the updates
                foreach (DataGridViewRow item in GView_spupdates.SelectedRows)
                {
                    string product = item.Cells[0].Value.ToString();
                    string title = item.Cells[1].Value.ToString();
                    string kbnumber = item.Cells[3].Value.ToString();
                    log.Info("Begining download for: " + product + "(" + kbnumber + ") - " + title);

                    Update update = new Update();
                    update.DownloadUpdates(kbnumber, "./Updates/" + kbnumber);
                }
            }
            else
            {

            }
        }