示例#1
0
 private void btnThemNCC_Click(object sender, EventArgs e)
 {
     try
     {
         FrmQLNCC fr = new FrmQLNCC();
         fr.ShowDialog();
         da = new SqlDataAdapter("select * from NHACUNGCAP", conn);
         ds.Tables[0].Clear();
         da.Fill(ds, "NHACUNGCAP");
         cbbTenNCC.DataSource    = ds.Tables[0];
         cbbTenNCC.DisplayMember = "TEN_NCC";
         cbbTenNCC.ValueMember   = "MA_NCC";
         if (ds.Tables[0].Rows.Count != 0)
         {
             cbbTenNCC.SelectedItem = cbbTenNCC.Items[0];
         }
         showDataToCombobox_MA_TB();
     }
     catch { }
 }
示例#2
0
        private void qLNCCToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmQLNCC f = new FrmQLNCC();

            f.ShowDialog();
        }
        private void btnThemNCC_Click(object sender, EventArgs e)
        {
            FrmQLNCC fm = new FrmQLNCC();

            fm.ShowDialog();
        }