private void btnSave_Click(object sender, EventArgs e) { try { String TableName = "Mst_" + GblIQCare.ItemTableName; IMasterList objItemlist = (IMasterList)ObjectFactory.CreateInstance("BusinessProcess.SCM.BMasterList,BusinessProcess.SCM"); int retrows = objItemlist.SaveUpdateItemList(DTItemlist, GblIQCare.ItemCategoryId, TableName, GblIQCare.AppUserId); IQCareWindowMsgBox.ShowWindow("ProgramSave", this); Init_Form(); } catch (Exception err) { MsgBuilder theBuilder = new MsgBuilder(); theBuilder.DataElements["MessageText"] = err.Message.ToString(); IQCareWindowMsgBox.ShowWindowConfirm("#C1", theBuilder, this); } }