public void FillData() { dt = new DataTable(); Businessobj = new BusinessAddDepartment(); dt = Businessobj.BusinessFillLocation(); cmbxLocation.DisplayMember = dt.Columns[1].ToString(); cmbxLocation.DataSource = dt; cmbxLocation.DropDownStyle = ComboBoxStyle.DropDownList; txtDeptId.Text = (Businessobj.BusinessGetLastDeptId() + 1).ToString(); }
public AddDeptDtls() { InitializeComponent(); objEntityAddDept = new EntityAddDepartment(); Businessobj = new BusinessAddDepartment(); }
public void Init() { objBusinessAddDept = new BusinessAddDepartment(); objEntityAddDept = new EntityAddDepartment(); }