Exemple #1
0
 public void RenameButtons(string ok, string cancel = "")
 {
     if (_buttons != ButtonType.Ok && _buttons != ButtonType.OkCancel)
     {
         throw new InvalidOperationException(
                   "Cannot rename OK/Cancel buttons on Button Type " + _buttons);
     }
     ((Button)Container.FindChildByName("Okay", true)).Text = ok;
     if (_buttons == ButtonType.OkCancel && cancel != "")
     {
         ((Button)Container.FindChildByName("Cancel", true)).Text = cancel;
     }
     Setup();
 }