Please excuse my ignorance with this. Let me give you my example. My main form is checking for a connection state with a network service.
void AASRef_CallStatus(string Message)
{
switch (Message){
case "Attached":
loginpage.Show();
break;
case "Logged on":
loginpage.hide();
break;
}
}
I am trying to apply the example that you posted but am a little unsure about how exactly to do it. Using the code provided can you please demonstrate?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.