//FORMULÁRIO PUBLICIDADE private void PubBtn_Click(object sender, EventArgs e) { btn_disabler(); PubForm Form = new PubForm(); this.AddOwnedForm(Form); Form.Show(); }
public void PubDialogStart(String imagepath, String desc, Int32 numbers, PubForm fr1) { InitializeComponent(); xx = numbers; cmd = desc; //connection to database ds1 = class1.databaseconnection(desc); drow = ds1.Tables[0].Rows[xx - 1]; //placing stuff in their righteous place Titlebox.Text = drow.ItemArray.GetValue(1).ToString(); Enterprisebox.Text = drow.ItemArray.GetValue(2).ToString(); ImgPathBox.Text = imagepath; LinkBox.Text = drow.ItemArray.GetValue(5).ToString(); ValueBox.Text = drow.ItemArray.GetValue(4).ToString(); Datebox.Text = drow.ItemArray.GetValue(3).ToString(); this.Fr1 = fr1; }