Exemple #1
0
        private void cmdAdd_Click(object sender, EventArgs e)
        {
            popAddNegociation pan = new popAddNegociation(players, list);

            pan.ShowDialog();

            if (pan.accepted)
            {
                if (pan.result == -1)
                {
                    list.addToGiveMoney(pan.resultPlayer, pan.resultInd);                      //list.giveMoney[ pan.resultPlayer ] += pan.resultInd;
                }
                else if (pan.result == -2)
                {
                    list.addToMoneyPerTurn(pan.resultPlayer, pan.resultInd);                      //list.moneyPerTurn[ pan.resultPlayer ] += pan.resultInd;
                }
                else
                {
                    list.add(pan.result);
                }

                populateLBs();
                enableWHTB();
            }
        }
Exemple #2
0
		private void cmdAdd_Click(object sender, EventArgs e)
		{
			popAddNegociation pan = new popAddNegociation( players, list );

			pan.ShowDialog();
			
			if ( pan.accepted )
			{
				if ( pan.result == -1 )
					list.addToGiveMoney( pan.resultPlayer, pan.resultInd );//list.giveMoney[ pan.resultPlayer ] += pan.resultInd;
				else if ( pan.result == -2 )
					list.addToMoneyPerTurn( pan.resultPlayer, pan.resultInd );//list.moneyPerTurn[ pan.resultPlayer ] += pan.resultInd;
				else
					list.add( pan.result );

				populateLBs();
				enableWHTB();
			}
		
		}