Guest User

Untitled

a guest
May 20th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public void startPubButton()
  2. {
  3. Thread entryThread = new Thread(startPublisher);
  4. entryThread.IsBackground = true;
  5. entryThread.Start();
  6. }
  7.  
  8. public void MyButton(bool anyName)
  9. {//do work here}
  10.  
  11. //Set up 2 bools one to hold the state and one to control the state
  12. public bool AnyName {get; set;}
  13. public bool CanMyButton(bool anyName) //must be Can+button name
  14. {get {return AnyName; } }
  15.  
  16. AnyName = false;
  17. NotifyOfPropertyChange(() => CanMyButton);
Add Comment
Please, Sign In to add comment