Hello I have a issue to discuss that recently I have a made a C# program for Rental Car Management, although its very easy cause all it contained was SQL statements manipulating the data form database. The issues starts when I gather all the elements or functions and display them to be accessed by one Main window where I can access all the different elements of the programs. I am showing you the code for this part, My teacher says its bit complicated and he would have done it simpler and differently.
I will appreciate any help comments to improve this.
static void Main(string[ ] args)
CMS cms=new CMS();
public void ActionPerformed( string c )
ManageCustomer m1= new ManageCustomer();
ManageContract m2 = new ManageContract();
ManageEmployee m3 = new ManageEmployee();
ManagePayment m4 = new ManagePayment();
ManageCar m5 = new ManageCar();
ManageCarCatagories m6 = new ManageCarCatagories();
//every thing OK up til here, no problems, but all the problems start after this.
public void Go()
entry = new Views.Form(formSpec);
for( ; ; ) // he thinks this is not right!!!
string c = entry.GetControl();
if (c==null) break;
0 · ·