public void bindForm(long aAsk) { try { mBook = new Book(); mBook.Ask = aAsk.ToString(); DataTable l_databale = new DataTable(); l_databale = mMasterBLL.Findby("LMS_Book", mBook); mBook = (Book)mMasterBLL.selectObjbyAskobj("LMS_Book", mBook); bindUI(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
//reference //PersonObj mPersonObj = new PersonObj(); #region "Private Method" public void bindForm(string aAsk) { try { mBrandObj = new BrandObj(); mBrandObj.Ask = aAsk; DataTable l_databale = new DataTable(); l_databale = mMasterBLL.Findby("POS_Brand", mBrandObj); mBrandObj.Ask = Convert.ToString(l_databale.Rows[0][0]); mBrandObj.BrandName = Convert.ToString(l_databale.Rows[0][3]); mBrandObj.BrandDes = l_databale.Rows[0][4].ToString(); mBrandObj.BrandRegion = l_databale.Rows[0][5].ToString(); mBrandObj.BrandType = l_databale.Rows[0][6].ToString(); mBrandObj.BrandStatus = l_databale.Rows[0][7].ToString(); bindUI(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }