Exemple #1
0
 private void btnG_Find_Click(object sender, EventArgs e)
 {
     try
     {
         string  GroupMatName = tbG_Find.Text.Trim();
         DataSet ds           = MatGroup.ds_MatGroup(GroupMatName);
         gCtrl_Gmat.DataSource = ds.Tables[1];
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Exemple #2
0
 private void btnMas_Find_Click(object sender, EventArgs e)
 {
     try
     {
         string  GroupMatName = tbMas_Gname.Text.Trim();
         DataSet ds           = MatGroup.ds_MatGroup(GroupMatName);
         gCtrl_MasterList.DataSource = ds.Tables[2];
         gCtrl_ShowList.DataSource   = null;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }