Click here to Skip to main content
15,898,374 members
Home / Discussions / C#
   

C#

 
GeneralRe: What is the best way to create a dictionary apllication Pin
Yasser Sobhy25-Sep-11 10:11
Yasser Sobhy25-Sep-11 10:11 
AnswerRe: What is the best way to create a dictionary apllication Pin
Richard MacCutchan25-Sep-11 6:07
mveRichard MacCutchan25-Sep-11 6:07 
GeneralRe: What is the best way to create a dictionary apllication Pin
Yasser Sobhy25-Sep-11 10:18
Yasser Sobhy25-Sep-11 10:18 
QuestionError 1001 : Unable to get installer types in my InstallHelper.dll assembly Pin
kutbinayi24-Sep-11 8:14
kutbinayi24-Sep-11 8:14 
AnswerRe: Error 1001 : Unable to get installer types in my InstallHelper.dll assembly Pin
Paramu197324-Sep-11 21:42
Paramu197324-Sep-11 21:42 
GeneralRe: Error 1001 : Unable to get installer types in my InstallHelper.dll assembly PinPopular
kutbinayi25-Sep-11 4:18
kutbinayi25-Sep-11 4:18 
GeneralRe: Error 1001 : Unable to get installer types in my InstallHelper.dll assembly Pin
shukla199019-Oct-23 3:57
shukla199019-Oct-23 3:57 
QuestionC# help please! Pin
Goran Shoan24-Sep-11 7:21
Goran Shoan24-Sep-11 7:21 
Hi I have a little problem with c # code. I wonder if you can help me because I have tried to solve this problem for several days. I get the error: "No overload for method 'ReserveOrCancelSeat' takes '0 'arguments

Here is the code:

private void ReserveOrCancelSeat(SeatManager.DisplayOptions choice)
{
if (CheckSelectedIndex() == false)
{
MessageBox.Show("a seat must be selected", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}

// Is reserve selected
if (rbtnReserve.Checked == true)
{
// Validate data
string name = null;
double price = 0.0;
if (ReadAndValidateInput(out name, out price) == true)
{
// Data is ok, reserve seat
if (!m_seatMngr.ReserveSeat(name, price, lbSeats.SelectedIndex))
{
// The seat was already reserved, ask user if we should continue with reservation
if (MessageBox.Show("The seat is already reserved, continue with reservation?", "Seat already reserved", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
// We continue. First cancel seat.
if (!m_seatMngr.CancelSeat(lbSeats.SelectedIndex))
{
// This should not happen, throw exception
throw new Exception("The seat could not be canceled.");
}
// Then we reserve it
if (!m_seatMngr.ReserveSeat(name, price, lbSeats.SelectedIndex))
{
// This should not happen, throw exception
throw new Exception("The seat could not be reserved.");

}
}
}
}

}
}

private void btnOK_Click(object sender, EventArgs e)
{
ReserveOrCancelSeat(); // here comes the error message
}
AnswerRe: C# help please! Pin
Luc Pattyn24-Sep-11 7:30
sitebuilderLuc Pattyn24-Sep-11 7:30 
GeneralRe: C# help please! Pin
Goran Shoan24-Sep-11 7:43
Goran Shoan24-Sep-11 7:43 
GeneralRe: C# help please! Pin
AnnieMacD26-Sep-11 1:52
AnnieMacD26-Sep-11 1:52 
AnswerRe: C# help please! Pin
André Kraak24-Sep-11 7:40
André Kraak24-Sep-11 7:40 
GeneralRe: C# help please! Pin
Goran Shoan24-Sep-11 7:46
Goran Shoan24-Sep-11 7:46 
GeneralRe: C# help please! Pin
André Kraak24-Sep-11 8:05
André Kraak24-Sep-11 8:05 
GeneralRe: C# help please! Pin
Goran Shoan24-Sep-11 8:10
Goran Shoan24-Sep-11 8:10 
GeneralRe: C# help please! Pin
André Kraak24-Sep-11 8:17
André Kraak24-Sep-11 8:17 
AnswerRe: C# help please! Pin
Yasser Sobhy25-Sep-11 2:00
Yasser Sobhy25-Sep-11 2:00 
GeneralRe: C# help please! Pin
Goran Shoan25-Sep-11 2:24
Goran Shoan25-Sep-11 2:24 
QuestionHow to keep data available for whole project access? Pin
Paramu197323-Sep-11 22:24
Paramu197323-Sep-11 22:24 
AnswerRe: How to keep data available for whole project access? Pin
BillWoodruff23-Sep-11 23:11
professionalBillWoodruff23-Sep-11 23:11 
AnswerRe: How to keep data available for whole project access? PinPopular
Mycroft Holmes24-Sep-11 0:57
professionalMycroft Holmes24-Sep-11 0:57 
AnswerRe: How to keep data available for whole project access? Pin
PIEBALDconsult24-Sep-11 5:57
mvePIEBALDconsult24-Sep-11 5:57 
AnswerRe: How to keep data available for whole project access? Pin
Yasser Sobhy25-Sep-11 2:12
Yasser Sobhy25-Sep-11 2:12 
AnswerRe: How to keep data available for whole project access? Pin
Muhammad Shahid Farooq25-Sep-11 4:01
professionalMuhammad Shahid Farooq25-Sep-11 4:01 
QuestionSuperMarket Inventory Database Software Pin
Ayaz Muhammad Hanif23-Sep-11 21:40
Ayaz Muhammad Hanif23-Sep-11 21:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.