Example #1
0
 private void btnCari_Click(object sender, EventArgs e)
 {
     if (boxCari.Text == "")
     {
         admin obj = new admin();
         dataGridCari.DataSource = obj.view();
         dataGridCari.Visible    = true;
         btnPictEdit.Visible     = true;
         label2.Visible          = true;
     }
     else
     {
         admin obj = new admin();
         dataGridCari.DataSource = obj.search(boxCari.Text);
         dataGridCari.Visible    = true;
         btnPictEdit.Visible     = true;
         label2.Visible          = true;
     }
 }
        void view()
        {
            admin lht = new admin();

            dataGridListPemesanan.DataSource = lht.view();
        }