Ejemplo n.º 1
0
        private void FillValues()
        {
            dt = new DataTable();
            dt = pros.SearchProduct(Convert.ToInt32(txt_proID.Text));
            DataRow row = dt.Rows[0];

            txt_barcode.Text     = row["Barcode"].ToString();
            txt_productName.Text = row["ProName"].ToString();
        }
Ejemplo n.º 2
0
 private void txt_proid_TextChanged(object sender, EventArgs e)
 {
     try
     {
         if (productList_cmbx.SelectedIndex != -1)
         {
             dt = new DataTable();
             int proid = Convert.ToInt32(txt_proid.Text);
             dt = pros.SearchProduct(proid);
             DataRow row = dt.Rows[0];
             txt_barcode.Text = row["Barcode"].ToString();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error message : " + ex.Message, "Error Message", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Ejemplo n.º 3
0
        private void FillValues()
        {
            dt = new DataTable();
            dt = pros.SearchProduct(Convert.ToInt32(txt_proID.Text));
            DataRow row = dt.Rows[0];

            txt_barcode.Text        = row["Barcode"].ToString();
            txt_frontCameraPXL.Text = row["FrontCamera"].ToString();
            txt_BankCameraPXL.Text  = row["BackCamera"].ToString();
            txt_proName.Text        = row["ProName"].ToString();
            txt_proTag.Text         = row["ProTag"].ToString();
            txt_RAM.Text            = row["RAM"].ToString();
            txt_screenSize.Text     = row["ScreenSize"].ToString();
            txt_SerialNumber.Text   = row["SerialNumber"].ToString();
            txt_ROM.Text            = row["ROM"].ToString();
            txt_OSVerison.Text      = row["ProOS"].ToString();
            txt_OtherInfor.Text     = row["OtherInfo"].ToString();
            brand_cmbx.Text         = row["ProBrand"].ToString();
            category_cmbx.Text      = row["ProCategory"].ToString();
            proStatus_cmbx.Text     = row["ProStatus"].ToString();
        }