Ejemplo n.º 1
0
 private void register_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (register.SelectedTab.Text == tabBrg.Text)
     {
         Barang brg = new Barang();
         dataGridView_Brg.DataSource = brg.showDataBrg();
     }
     else if (register.SelectedTab.Text == tabCust.Text)
     {
         Customer cust = new Customer();
         dataGridView_Cust.DataSource = cust.showDataCust();
     }
     else if (register.SelectedTab.Text == tabSup.Text)
     {
         Supplier sup = new Supplier();
         dataGridView_Sup.DataSource = sup.showDataSup();
     }
 }
Ejemplo n.º 2
0
        private void menuList_Load(object sender, EventArgs e)
        {
            Barang brg = new Barang();

            dataGridView_Brg.DataSource = brg.showDataBrg();
        }