Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Control for Main Button Window
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 · ·