コード例 #1
0
        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);
        }
コード例 #2
0
        public PlayerMovesEventArgs(string message, int playedBlock, TypeOfSign sign)
        {
            this.message = message;

            this.playedBlock = playedBlock;

            this.sign = sign;
        }
コード例 #3
0
ファイル: Parser.cs プロジェクト: taler0n/Students
            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;
            }
コード例 #4
0
ファイル: Engine.cs プロジェクト: Bvaptsarov/Homework
 /// <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;
     }
 }
コード例 #5
0
 public HumanPlayer(String name, short id, TypeOfSign sign)
     : base(name, id, sign)
 {
 }
コード例 #6
0
ファイル: Player.cs プロジェクト: Bvaptsarov/Homework
 public Player(String name, short number, TypeOfSign sign)
 {
     Name = name;
     UniqueNumber = number;
     Sign = sign;
 }
コード例 #7
0
 public CharacterElement(String charValue, TypeOfSign typeOfSign)
 {
     CharValue  = charValue;
     TypeOfSign = typeOfSign;
 }
コード例 #8
0
ファイル: Block.cs プロジェクト: Bvaptsarov/Homework
 public Block(TypeOfSign sign)
     : this()
 {
     Sign = sign;
 }
コード例 #9
0
ファイル: Parser.cs プロジェクト: Confirmit/Students
 //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;
 }