public CommitChangesButton(OptionsDialog dlg)
 {
     m_OptionsDialog = dlg;
     EnableCondition = dlg.dirtyCondition;
 }
 public CancelChangesButton(OptionsDialog dlg)
 {
     m_OptionsDialog = dlg;
 }