i should be able to figure this out. ive tried the msdn documation and searching google, but this whole events delegates thing still has me confused.
essentially what i want to to is fire an event when a boolean variable in my class gets set to true. example:
public class MyClass
{
private bool MyBool = false;
public void SetMybool(bool b)
{
MyBool = b;
}
}
public class program
{
public static void Main()
{
MyClass NewClass = new MyClass();
NewClass.SetMybool(true); //// would like to see an event fired here ....
}
}
help????


Sign In
Create Account

Back to top









