Exemple #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (txtBId.Text == "")
     {
         MessageBox.Show("Please select Brand from the List");
     }
     else
     {
         AdvertsForm a = new AdvertsForm();
         a.Show();
         //   a.SearchAdvertsByBrandID(int.Parse(txtBId.Text));
     }
 }
        private void btnAdverts_Click(object sender, EventArgs e)
        {
            AdvertsForm a = new AdvertsForm();

            a.ShowDialog();
        }