gbrainy r226 - trunk/src



Author: jmas
Date: Mon Feb 18 21:38:23 2008
New Revision: 226
URL: http://svn.gnome.org/viewvc/gbrainy?rev=226&view=rev

Log:
Fixes enum name

Modified:
   trunk/src/MathArithmetical.cs

Modified: trunk/src/MathArithmetical.cs
==============================================================================
--- trunk/src/MathArithmetical.cs	(original)
+++ trunk/src/MathArithmetical.cs	Mon Feb 18 21:38:23 2008
@@ -27,7 +27,7 @@
 	public enum Operation
 	{
 		Addition = 0,	
-		Substraction,	
+		Subtraction,	
 		Multiplication,
 		LastOperation
 	}
@@ -71,7 +71,7 @@
 
 		switch (operation) {
 		case Operation.Addition:
-		case Operation.Substraction:
+		case Operation.Subtraction:
 			operations = 2 + random.Next (max_operations);
 				break;
 		case Operation.Multiplication:
@@ -89,7 +89,7 @@
 			case Operation.Addition:
 				result += operands[i];
 				break;	
-			case Operation.Substraction:
+			case Operation.Subtraction:
 				result -= operands[i];
 				break;
 			case Operation.Multiplication:
@@ -120,7 +120,7 @@
 			case Operation.Addition:
 				gr.ShowText ("+");
 				break;	
-			case Operation.Substraction:
+			case Operation.Subtraction:
 				gr.ShowText ("-");
 				break;
 			case Operation.Multiplication:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]