protected void ExecuteCommand(UndoCommand cmd)
 {
     cmd.Do();
     AddCommand(cmd);
 }