protected virtual bool Load(Enumarations.State MinState) { bool bTemp = false; DataSet oDS; oDS = null; if (this.ID > 0) { try { DAL.DataProvider.SqlClientProvider oSqlClientProvider = new DAL.DataProvider.SqlClientProvider(); oDS = oSqlClientProvider.GetMachineDetailByMID(this.ID, (int)MinState); if (Utility.CheckDataSetState(oDS) && (Utility.CheckDataTableState(oDS.Tables[0]))) { if (oDS.Tables[0].Rows.Count > 0) { bTemp = LoadMachineFromDataRow(oDS.Tables[0].Rows[0], MinState); } } } catch (Exception Exp) { } finally { } } return(bTemp); }