Académique Documents
Professionnel Documents
Culture Documents
bool guestSwap;
public Room(string idP,string guestNameP, decimal pricePerDayP)
{
id=idP;
guestNameP = guestNameP;
pricePerDay=pricePerDayP;
guestSwap = false;
}
public string UpdateCommandString
{
get
{
lock (locker)
{
return @"UPDATE hotel+rooms SET GUEST NAME+ " + guestName;
}
}
}
public void ChangeValues(string guestNameP, decimal pricePerDayP)
{
lock (locker)
{
guestName = guestNameP;
pricePerDay = pricePerDayP;
guestSwap = true;
}
}
**************manager***********
Dictionary<string, Room> roomRecord = new Dictionary<string, Room>();
SqlConnection myConnection;
}
public void Disconnect()
{
if (myConnection != null)
myConnection.Close();
}
************btn****************