private void addListener() {

		beginBussinessButton.addSelectionListener(new SelectionListener() {
			@Override
			public void widgetSelected(SelectionEvent e) {
				if (!isBusiness) {
					isBusiness = true;
					beginBussinessButton.setText("停止营业");

					DoBusiness doBusiness = new DoBusiness();
					new Thread(doBusiness).start();

					restaurant.open();
				}
				else {
					isBusiness = false;
					beginBussinessButton.setText("开始营业");
					restaurant.close();
				}
			}

			@Override
			public void widgetDefaultSelected(SelectionEvent arg0) {
			}
		});
		Iterator it = new ButtonLinkCommandIterator(buttonLinkCommands);
		while (it.hasNext())
		{
			final ButtonLinkCommand tmp = (ButtonLinkCommand) it.next();
			tmp.getBtn().addSelectionListener(new SelectionListener()
			{
				@Override
				public void widgetSelected(SelectionEvent e)
				{
					restaurant.buy(tmp.getCmd());
				}

				@Override
				public void widgetDefaultSelected(SelectionEvent arg0)
				{

				}
			});
		}
	}