private static void UpdateStationDesktop(object stationId, object styleId) { EntityData data = new EntityData("StationDesktop"); try { try { StationDesktop.UpdateStationDesktop(stationId, styleId); } catch (Exception exception) { throw exception; } } finally { data.Dispose(); } }
public static DataSet GetStationList() { DataSet set; EntityData allStation = new EntityData(); try { allStation = StationDesktop.GetAllStation(); set = allStation; } catch (Exception exception) { throw exception; } finally { allStation.Dispose(); } return(set); }
private static void InsertStationDesktop(object stationId, object styleId) { EntityData entity = new EntityData("StationDesktop"); try { try { DataRow newRecord = entity.GetNewRecord(); newRecord["StationID"] = stationId; newRecord["StyleID"] = styleId; entity.AddNewRecord(newRecord); StationDesktop.InsertStationDesktop(entity); } catch (Exception exception) { throw exception; } } finally { entity.Dispose(); } }