Click here to Skip to main content
15,891,657 members
Home / Discussions / C#
   

C#

 
QuestionClob into oracle Pin
Lash207-Mar-06 2:43
Lash207-Mar-06 2:43 
Questionsplash screen Pin
Vineet Rajan7-Mar-06 2:36
Vineet Rajan7-Mar-06 2:36 
AnswerRe: splash screen Pin
Rey99997-Mar-06 3:02
Rey99997-Mar-06 3:02 
QuestionCurrent Date and Time Pin
Brendan Vogt7-Mar-06 1:47
Brendan Vogt7-Mar-06 1:47 
AnswerRe: Current Date and Time Pin
Guffa7-Mar-06 1:53
Guffa7-Mar-06 1:53 
QuestionRe: Current Date and Time Pin
Brendan Vogt7-Mar-06 1:59
Brendan Vogt7-Mar-06 1:59 
AnswerRe: Current Date and Time Pin
CWIZO7-Mar-06 2:48
CWIZO7-Mar-06 2:48 
QuestionControl for Main Button Window Pin
jahangir70007-Mar-06 0:01
jahangir70007-Mar-06 0:01 
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.
namespace CMS1 // The Main NameSpace which is used for referencing rest of the program.
{
class CMS
{
// Structure of the Form mad with Views FileSystem.
Views.Form entry;
string formSpec = @"
<vertical>
<horizontal>



<vertical>
<horizontal>




<vertical>
<horizontal>




<horizontal>
<space width="130">


";
// a Method wich calls all other Programs from one single main.

public void ActionPerformed( string c )
{
switch (c)
{
case "ManageCustomer":
ManageCustomer m1= new ManageCustomer();
m1.Go();
break;
case "ManageContract":
ManageContract m2 = new ManageContract();
m2.Go();
break;
case "ManageEmployee":
ManageEmployee m3 = new ManageEmployee();
m3.Go();
break;
case "ManagePayment":
ManagePayment m4 = new ManagePayment();
m4.Go();
break;
case "ManageCar":
ManageCar m5 = new ManageCar();
m5.Go();
break;
case"ManageCarCatagories":
ManageCarCatagories m6 = new ManageCarCatagories();
m6.Go();
break;
case "Exit":
entry.CloseGUI();
break;
default:
return;
}
}
//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;
ActionPerformed(c);
}
entry.CloseGUI();
}
static void Main(string[] args)
{
CMS cms=new CMS();
cms.Go();
}

kind regards

JG
AnswerRe: Control for Main Button Window Pin
Steve Hansen7-Mar-06 0:44
Steve Hansen7-Mar-06 0:44 
GeneralRe: Control for Main Button Window Pin
jahangir70009-Mar-06 20:09
jahangir70009-Mar-06 20:09 
QuestionC# Webservice Pin
H he el el oooo6-Mar-06 23:35
H he el el oooo6-Mar-06 23:35 
AnswerRe: C# Webservice Pin
Steve Hansen7-Mar-06 0:45
Steve Hansen7-Mar-06 0:45 
GeneralRe: C# Webservice Pin
H he el el oooo13-Mar-06 16:55
H he el el oooo13-Mar-06 16:55 
QuestionProcedure Pin
Support1236-Mar-06 23:31
Support1236-Mar-06 23:31 
AnswerRe: Procedure Pin
goyal manish6-Mar-06 23:52
goyal manish6-Mar-06 23:52 
GeneralRe: Procedure Pin
Support1236-Mar-06 23:55
Support1236-Mar-06 23:55 
AnswerRe: Procedure Pin
Guffa7-Mar-06 0:20
Guffa7-Mar-06 0:20 
QuestionTextBox Array in WebApplications ??? Pin
Abubakarsb6-Mar-06 23:22
Abubakarsb6-Mar-06 23:22 
AnswerRe: TextBox Array in WebApplications ??? Pin
Ingo7-Mar-06 0:31
Ingo7-Mar-06 0:31 
GeneralProblem is still There.... Pin
Abubakarsb7-Mar-06 22:22
Abubakarsb7-Mar-06 22:22 
AnswerRe: TextBox Array in WebApplications ??? Pin
darkelv7-Mar-06 0:48
darkelv7-Mar-06 0:48 
AnswerRe: TextBox Array in WebApplications ??? Pin
Chandana Subasinghe7-Mar-06 0:56
Chandana Subasinghe7-Mar-06 0:56 
QuestionHow to access TextBox Array in WebApplications ??? Pin
Abubakarsb6-Mar-06 23:19
Abubakarsb6-Mar-06 23:19 
QuestionHow to access TextBox Array in WebApplications ??? Pin
Abubakarsb6-Mar-06 23:17
Abubakarsb6-Mar-06 23:17 
Questionerror handling Pin
fmardani6-Mar-06 22:51
fmardani6-Mar-06 22:51 

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.