|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Hello team-
I am trying to learn C# by modifying an open source project for my own needs, but I cannot seem to find any reference to the following code anywhere. Just below the variable declarations, many of the forms in this project have the following: Code:
public FormExam(Patient patCur)
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
PatCur=patCur;
Lan.F(this);
}
Then, a lot of methods that look like this: Code:
private void butDelete_Click(object sender, System.EventArgs e) {
if(listExams.SelectedIndex==-1){
MessageBox.Show(Lan.g(this,"Please select an item first."));
return;
}
if(MessageBox.Show(Lan.g(this,"Delete Exam?"),"",MessageBoxButtons.OKCancel)!=DialogResult.OK){
return;
}
int curselected=listExams.SelectedIndex;
Exams.Delete(ExamCur);
RefreshListExams();
if(curselected < listExams.Items.Count)
listExams.SelectedIndex=curselected;
else
listExams.SelectedIndex=Exams.List.Length-1;
FillGrid();
}
I'm trying to understand what the Lan.F(this) and lan.g statements do - but I can't find any reference to them anywhere. Can anyone help? Thanks, Pete |
|
#2
|
||||
|
||||
|
There's probably a global object `Lan', to which those methods belong. Find that object, retrieve it's class definition and be enlightened
__________________
This is my code. Is it not nifty? "The biggest problem encountered while trying to design a system that was completely foolproof, was, that people tended to underestimate the ingenuity of complete fools." ---Douglas Adams Join the Itsacon fanclub! Zero Tolerance: Spammers banned so far: 263
![]() |
|
#3
|
|||
|
|||
|
Quote:
Yes, you are quite right. Found it. Many thanks... |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Help me understand what this code does |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|