public void ChageState(TableState pState) { state = pState; hide = pState.ToString(); //~ synchronize to db, if need to maintain the state in db DataContextDataContext dc = new DataContextDataContext(); dc.update_state_table(id, (int?)state); }
public SysTable(Guid pId, string pName, int pSeat, string pPictPath, TableState pState) { id = pId; name = pName; seat = pSeat; pictPath = pPictPath; state = pState; hide = state.ToString(); }