Exemplo n.º 1
0
 public TaxChoice ShowTaxDialog(int playerID)
 {
     if (HasRef)
     {
         Form taxForm = new TaxDialog();
         DialogResult result = taxForm.ShowDialog();
             //TODO- clean this up. There's almost certainly a better way of handling it.
         if (result == DialogResult.OK)
         {
             return TaxChoice.TenPercent;
         }
         else
         {
             return TaxChoice.TwoHundred;
         }//if-else
     }//if
     else
     {
         UIRefError("ShowTaxDialog");
         return TaxChoice.Error;
     }//else
 }
Exemplo n.º 2
0
 public void TestTaxForm()
 {
     TaxDialog form = new TaxDialog();
     DialogResult result = form.ShowDialog(Monopoly);
     switch (result)
     {
         case DialogResult.OK:
             UI.UIDebug("10% was selected");
             break;
         case DialogResult.Cancel:
             UI.UIDebug("$200 was selected");
             break;
     }//switch
 }