Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
GeneralRe: Working with multiple forms Pin
Henry Minute12-May-09 11:54
Henry Minute12-May-09 11:54 
GeneralRe: Working with multiple forms Pin
bwood202013-May-09 4:02
bwood202013-May-09 4:02 
GeneralRe: Working with multiple forms Pin
bwood202013-May-09 6:20
bwood202013-May-09 6:20 
GeneralRe: Working with multiple forms Pin
Henry Minute13-May-09 6:38
Henry Minute13-May-09 6:38 
GeneralRe: Working with multiple forms Pin
bwood202014-May-09 9:49
bwood202014-May-09 9:49 
GeneralRe: Working with multiple forms Pin
Henry Minute14-May-09 10:46
Henry Minute14-May-09 10:46 
GeneralRe: Working with multiple forms Pin
DaveyM6912-May-09 8:09
professionalDaveyM6912-May-09 8:09 
QuestionI can't get latest value by ref parameter. WHY? [modified] Pin
codeadair12-May-09 5:26
codeadair12-May-09 5:26 
There are two layers in my project. one is business layer,and the other is UI layer.
In UI layer, i invoke the method 'SaveInfo' of business layer. by the way ServiceActivator.GetService.

But i can't get 'newInfo' in UI layer.
and if i remove 'throw ex;' in 'SaveInfo' method. i could get it.
i don't know why.
do you know? how could i get newInfo if i want to throw Exception to UI layer.
pls. ths.

'SaveInfo' in Business layer:
public void SaveInfo(ref StudentInfo info,ref List<studentinfodetail> detailList,string strType)
{
try
{
...
info = newInfo;
detailList = newDetailList;
throw new MyException("Information already exist.");
...
}
catch(Exception ex)
{
throw ex;
}
}

the invoke code in UI layer:

try
{
...
mMyDs.SaveInfo(ref curInfo,ref curList,"Add");
...
]
catch(MyException mex)
{
textBox1.text = curInfo.Name;
}
catch(Exception ex)
{
}

MSN:msnadair@hotmail.com
Skype:skyadair

modified on Tuesday, May 12, 2009 8:52 PM

AnswerRe: I can't get latest value by ref parameter. WHY? Pin
Henry Minute12-May-09 5:39
Henry Minute12-May-09 5:39 
GeneralRe: I can't get latest value by ref parameter. WHY? Pin
codeadair12-May-09 14:57
codeadair12-May-09 14:57 
QuestionSeveral event handlers, one handler function, how to know which event handler has been used?? Pin
blackhattrick12-May-09 5:23
blackhattrick12-May-09 5:23 
AnswerRe: Several event handlers, one handler function, how to know which event handler has been used?? Pin
DaveyM6912-May-09 5:29
professionalDaveyM6912-May-09 5:29 
AnswerRe: Several event handlers, one handler function, how to know which event handler has been used?? Pin
Samer Aburabie12-May-09 5:32
Samer Aburabie12-May-09 5:32 
AnswerRe: Several event handlers, one handler function, how to know which event handler has been used?? Pin
OriginalGriff12-May-09 5:34
mveOriginalGriff12-May-09 5:34 
AnswerRe: Several event handlers, one handler function, how to know which event handler has been used?? Pin
blackhattrick12-May-09 5:53
blackhattrick12-May-09 5:53 
GeneralRe: Several event handlers, one handler function, how to know which event handler has been used?? Pin
riced12-May-09 7:43
riced12-May-09 7:43 
GeneralRe: Several event handlers, one handler function, how to know which event handler has been used?? Pin
blackhattrick12-May-09 15:24
blackhattrick12-May-09 15:24 
QuestionProgramatically download file (script problem) Pin
Niemand2512-May-09 5:13
professionalNiemand2512-May-09 5:13 
QuestionHELP with assignment Pin
sofi7912-May-09 5:00
sofi7912-May-09 5:00 
AnswerRe: HELP with assignment Pin
EliottA12-May-09 5:09
EliottA12-May-09 5:09 
AnswerRe: HELP with assignment Pin
sofi7912-May-09 5:14
sofi7912-May-09 5:14 
GeneralRe: HELP with assignment Pin
DaveyM6912-May-09 5:20
professionalDaveyM6912-May-09 5:20 
GeneralRe: HELP with assignment Pin
PIEBALDconsult12-May-09 5:25
mvePIEBALDconsult12-May-09 5:25 
GeneralRe: HELP with assignment Pin
Dan Neely12-May-09 6:00
Dan Neely12-May-09 6:00 
GeneralRe: HELP with assignment Pin
PIEBALDconsult12-May-09 7:03
mvePIEBALDconsult12-May-09 7:03 

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.