public FRM_Search(string _ch)
 {
     InitializeComponent();
     if (_ch == "Supplier")
     {
         //DataTable dt = ClassSupllier.SP_SUPPLIERSELECT();
         //dataGridView1.DataSource = dt;
         this.Text = "بيانات الموردين";
         dataGridView1.DataSource = ClassSupllier.SP_SUPPLIERSELECT();
     }
     else if (_ch == "Product")
     {
         //DataTable dt = ClassSupllier.SP_SUPPLIERSELECT();
         //dataGridView1.DataSource = dt;
         this.Text = "المنتجات";
         dataGridView1.DataSource = CLASSPRODUCT.SP_PRODECUTSELECT();
     }
     else if (_ch == "customer")
     {
         this.Text = "بيانات العملاء";
         dataGridView1.DataSource = CLASS_CUSTOMER.SP_CUSTOMER_DISPLAY();
     }
 }
Exemplo n.º 2
0
        private void btnDisplayAll_Click(object sender, EventArgs e)
        {
            DataTable dt = ClassSupllier.SP_SUPPLIERSELECT();

            dgvsupplier.DataSource = dt;
        }