/// <summary> /// Function to get all the values from Size Table /// </summary> /// <returns></returns> public List <DataTable> SizeViewAll() { List <DataTable> ListObj = new List <DataTable>(); try { ListObj = spSize.SizeViewAll(); } catch (Exception ex) { MessageBox.Show("SZ7:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(ListObj); }
/// <summary> /// Function to fill the Size combobox /// </summary> public void SizeComboFill() { try { SizeSP spSize = new SizeSP(); DataTable dtblSize = new DataTable(); dtblSize = spSize.SizeViewAll(); DataRow dr = dtblSize.NewRow(); dr[1] = "All"; dtblSize.Rows.InsertAt(dr, 0); cmbSize.DataSource = dtblSize; cmbSize.ValueMember = "sizeId"; cmbSize.DisplayMember = "size"; } catch (Exception ex) { MessageBox.Show("PSP3:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }