private void Pull_link_ddg_Click(object sender, EventArgs e) { BIOSUP_HTML HTML = new BIOSUP_HTML(this.list_vendor_url_model, this.list_vendor_url_dl_model); String str_model = label_admin_model.Text; HTML.Get_webpage_ddg(str_model); try { textBox_admin_model_url.Text = HTML.list_url[0]; } catch { MessageBox.Show("No URL found", "Error!", MessageBoxButtons.OK); } }
private void Button_admin_url_bulk_get_Click(object sender, EventArgs e) { BIOSUP_HTML HTML = new BIOSUP_HTML(this.list_vendor_url_model, this.list_vendor_url_dl_model); //String str_model = label_admin_url_model.Text; int int_url_to_get = Convert.ToInt32(numericUpDown_admin_url_url_to_add.Value); //URL check already occurs in DB upon insert, try { //if url + version already in system(if it is, add to edit/save flow(leave sine it should already be there from previous select), if not, add to 'add new') //HTML.get_webpage_ddg(str_model); HTML.Get_webpage_model_support(admin_url_url_label.Text); for (int i = 1; i <= int_url_to_get; i++) { String str_version = "x.x" + i; String str_url = HTML.list_vendor_dl_found[i - 1]; String str_date = "04/12/2019"; Biosup_multi_url_add control_to_add = new Biosup_multi_url_add { Parent = flowLayoutPanel_add_url_str }; control_to_add.Controls["textBox1"].Text = str_version; control_to_add.Controls["textBox_str_admin_url_multi_add"].Text = str_url; try { control_to_add.Controls["dateTimePicker1"].Text = str_date; } catch { textBox_admin_log.AppendText("\r\nInvalid date format for Version: " + str_version); textBox_admin_log.AppendText("\r\nShowing today's date instead..."); } flowLayoutPanel_add_url_str.Controls.Add(control_to_add); } } catch { } //need to check: //if there are extra bits required to get url }