/// <summary> /// GridFill function /// </summary> public void GridFill() { try { DataTable dtbl = new DataTable(); SizeSP spSize = new SizeSP(); dtbl = spSize.SizeViewAlling(); dgvSize.DataSource = dtbl; } catch (Exception ex) { MessageBox.Show("SZ1" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Function to get all values from Size Table /// </summary> /// <returns></returns> public List <DataTable> SizeViewAlling() { List <DataTable> ListObj = new List <DataTable>(); try { ListObj = spSize.SizeViewAlling(); } catch (Exception ex) { MessageBox.Show("SZ1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(ListObj); }