public static QrTestResult Create( string pQrCode, TypeOfSign pSignType, bool pStructureOk, bool pUriOk, bool pSpacesOk, bool pDistrictOk, OnlineStatus pIsOnline, bool pHasCoordinates, bool pIsDuplicate, string pMessage, bool pHasIssue) { var mRV = new QrTestResult(); mRV.QrCode = pQrCode; mRV.SignType = pSignType; mRV.UriOk = pUriOk; mRV.StructureOk = pStructureOk; mRV.DistrictOk = pDistrictOk; mRV.SpacesOk = pSpacesOk; mRV.IsOnline = pIsOnline; mRV.HasCoordinates = pHasCoordinates; mRV.IsDuplicate = pIsDuplicate; mRV.HasIssue = pHasIssue; mRV.Messages.Add(pMessage); return(mRV); }
public PlayerMovesEventArgs(string message, int playedBlock, TypeOfSign sign) { this.message = message; this.playedBlock = playedBlock; this.sign = sign; }
public CharacterElement(String charValue, TypeOfSign typeOfSign) //Here we have "String" and property is "string" (low case) //We are refering to an object here and should use "string" - low case //See usage recomendations for String and string below: //string is an alias for System.String. So technically, there is no difference. It's like int vs. System.Int32. //As far as guidelines, I think it's generally recommended to use string any time you're referring to an object. //e.g. string place = "world"; //Likewise, I think it's generally recommended to use String if you need to refer specifically to the class. //e.g. string greet = String.Format("Hello {0}!", place); //This is the style that Microsoft tends to use in their examples. { CharValue = charValue; TypeOfSign = typeOfSign; }
/// <summary> /// Here we're initializing the cube with the signs of the players /// </summary> /// //Only a sign will be entered private void InputToMatrix(int cubePosition, TypeOfSign sign) { switch (cubePosition) { case 0: area[0, 0] = new GameField.Block(sign); break; case 1: area[0, 1] = new GameField.Block(sign); break; case 2: area[0, 2] = new GameField.Block(sign); break; case 3: area[1, 0] = new GameField.Block(sign); break; case 4: area[1, 1] = new GameField.Block(sign); break; case 5: area[1, 2] = new GameField.Block(sign); break; case 6: area[2, 0] = new GameField.Block(sign); break; case 7: area[2, 1] = new GameField.Block(sign); break; case 8: area[2, 2] = new GameField.Block(sign); break; } }
public HumanPlayer(String name, short id, TypeOfSign sign) : base(name, id, sign) { }
public Player(String name, short number, TypeOfSign sign) { Name = name; UniqueNumber = number; Sign = sign; }
public CharacterElement(String charValue, TypeOfSign typeOfSign) { CharValue = charValue; TypeOfSign = typeOfSign; }
public Block(TypeOfSign sign) : this() { Sign = sign; }
//Here we have "String" and property is "string" (low case) //We are refering to an object here and should use "string" - low case //See usage recomendations for String and string below: //string is an alias for System.String. So technically, there is no difference. It's like int vs. System.Int32. //As far as guidelines, I think it's generally recommended to use string any time you're referring to an object. //e.g. string place = "world"; //Likewise, I think it's generally recommended to use String if you need to refer specifically to the class. //e.g. string greet = String.Format("Hello {0}!", place); //This is the style that Microsoft tends to use in their examples. public CharacterElement(String charValue, TypeOfSign typeOfSign) { CharValue = charValue; TypeOfSign = typeOfSign; }