private Tafel Readitem(SqlDataReader reader) { int tafel_id = (int)reader["tafel_id"]; Status_tafel status = (Status_tafel)(int)reader["status"]; return(new Tafel(tafel_id, status)); }
public bool SetTafelStatus(Status_tafel in_status) { if ((in_status == Status_tafel.Vrij || in_status == Status_tafel.Bezet)) { this.Status = in_status; return(true); } return(false); }
public Tafel(int in_id, Status_tafel in_status) { Id = in_id; Status = in_status; }