title: Is it ok to use the text on a button to determine current state?
body: <p>I have been using the text to determine the button state and want to know if it is generally accepted ?</p>
  
  <p>I have a datagrid view with a list of items and a "Done" Button. When the user clicks the done button the cell is highlighted green to mark it is done.</p>
  
  <p>I then change the button text to "Undo". So whenever the user scrolls over a "Green" Cell the button text changes to Undo.</p>
  
  <p>I use that text to determine what to do when the button is clicked.</p>
  
  <p>Is this ok? Or should I be using some kind of state monitor?</p>