示例#1
0
 private void SpawnNewEnemyBlock()
 {
     Settings.enemyBlock = new Image();
     changeEnemySkin(EnemyBlockCount);
     EnemyBlockCount++;
     Settings.enemyBlock.Name    = "enemyBlock" + BlockCount.ToString();
     Settings.enemyBlock.Height  = Settings.BlockHeight;
     Settings.enemyBlock.Width   = Settings.BlockWidth;
     Settings.enemyBlock.Stretch = Stretch.Fill;
     Canvas.SetLeft(Settings.enemyBlock, 30 + 500);
     Canvas.SetTop(Settings.enemyBlock, 0);
     AddNewBlock(Settings.enemyBlock);
     created = false;
 }
 private void SpawnNewBlock()
 {
     Settings.block = new Image();
     changeSkin(BlockCount);
     BlockCount++;
     ChangeBlockSpeed(BlockCount);
     Settings.block.Name    = "Block" + BlockCount.ToString();
     Settings.block.Height  = Settings.BlockHeight;
     Settings.block.Width   = Settings.BlockWidth;
     Settings.block.Stretch = Stretch.Fill;
     Canvas.SetLeft(Settings.block, 30);
     Canvas.SetTop(Settings.block, 0);
     AddNewBlock(Settings.block);
 }
示例#3
0
        private void DrawScore(SKCanvas canvas)
        {
            const float offset = 30;
            const float height = 100;
            const float width  = 80;
            SKPaint     paint  = new SKPaint
            {
                Color       = SKColors.Orange,
                IsAntialias = true,
                Style       = SKPaintStyle.Fill,
                StrokeWidth = 4,
                TextSize    = height
            };

            canvas.DrawText(BlockCount.ToString(), (float)(ActualWidth - 2 * width - offset), height, paint);
        }
示例#4
0
        public override string ToString()
        {
            var sb = new StringBuilder(AchFile.CharactersPerLine);

            sb.Append(RecordType);

            sb.Append(BatchCount.ToString().TrimAndPadLeft(6, '0'));

            sb.Append(BlockCount.ToString().TrimAndPadLeft(6, '0'));

            sb.Append(EntryCount.ToString().TrimAndPadLeft(8, '0'));

            sb.Append(EntryHash.TrimAndPadLeft(10, '0'));

            sb.Append((TotalDebits * 100).ToString("0").TrimAndPadLeft(12, '0'));  // 123.45 => 000000012345

            sb.Append((TotalCredits * 100).ToString("0").TrimAndPadLeft(12, '0')); // 123.45 => 000000012345

            sb.Append(Reserved.TrimAndPadRight(39));

            sb.AppendLine();

            return(sb.ToString());
        }
示例#5
0
 public override string ToString()
 {
     return("Block: ItemCount=" + ItemCount.ToString() + "BlockCount=" + BlockCount.ToString());
 }
示例#6
0
    public override string ToString()
    {
        var  sb      = new StringBuilder("MessageCommitResult(");
        bool __first = true;

        if (RequestId != null && __isset.requestId)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("RequestId: ");
            RequestId.ToString(sb);
        }
        if (__isset.state)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("State: ");
            State.ToString(sb);
        }
        if (MessageStoreRequestId != null && __isset.messageStoreRequestId)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("MessageStoreRequestId: ");
            MessageStoreRequestId.ToString(sb);
        }
        if (MessageIds != null && __isset.messageIds)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("MessageIds: ");
            MessageIds.ToString(sb);
        }
        if (__isset.receiverCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ReceiverCount: ");
            ReceiverCount.ToString(sb);
        }
        if (__isset.successCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("SuccessCount: ");
            SuccessCount.ToString(sb);
        }
        if (__isset.failCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("FailCount: ");
            FailCount.ToString(sb);
        }
        if (__isset.blockCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("BlockCount: ");
            BlockCount.ToString(sb);
        }
        if (__isset.unregisteredCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("UnregisteredCount: ");
            UnregisteredCount.ToString(sb);
        }
        if (__isset.unrelatedCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("UnrelatedCount: ");
            UnrelatedCount.ToString(sb);
        }
        if (ErrorDescription != null && __isset.errorDescription)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ErrorDescription: ");
            ErrorDescription.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }
    public override string ToString()
    {
        var  sb      = new StringBuilder("SendBuddyMessageResult(");
        bool __first = true;

        if (RequestId != null && __isset.requestId)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("RequestId: ");
            RequestId.ToString(sb);
        }
        if (__isset.state)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("State: ");
            State.ToString(sb);
        }
        if (MessageId != null && __isset.messageId)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("MessageId: ");
            MessageId.ToString(sb);
        }
        if (__isset.eventNo)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("EventNo: ");
            EventNo.ToString(sb);
        }
        if (__isset.receiverCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("ReceiverCount: ");
            ReceiverCount.ToString(sb);
        }
        if (__isset.successCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("SuccessCount: ");
            SuccessCount.ToString(sb);
        }
        if (__isset.failCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("FailCount: ");
            FailCount.ToString(sb);
        }
        if (__isset.cancelCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("CancelCount: ");
            CancelCount.ToString(sb);
        }
        if (__isset.blockCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("BlockCount: ");
            BlockCount.ToString(sb);
        }
        if (__isset.unregisterCount)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("UnregisterCount: ");
            UnregisterCount.ToString(sb);
        }
        if (__isset.timestamp)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Timestamp: ");
            Timestamp.ToString(sb);
        }
        if (Message != null && __isset.message)
        {
            if (!__first)
            {
                sb.Append(", ");
            }
            __first = false;
            sb.Append("Message: ");
            Message.ToString(sb);
        }
        sb.Append(")");
        return(sb.ToString());
    }