コード例 #1
0
        protected override async Task OnVcLoadComplete()
        {
            Gif.SetWaitingImage(pbAnimate);
            ts.Image = Properties.Resources.tick_16;
            ts.ApplyColorSchema(RowStyleType.Green);
            ts.Text = "验证码加载成功,快来玩连连看吧...";

            await base.OnVcLoadComplete().ConfigureAwait(true);
        }
コード例 #2
0
        /// <inheritdoc />
        protected override async Task OrderInitSuccessAsync(bool?needVc)
        {
            Gif.SetWaitingImage(pbAnimate);
            if (SubmitOrderWorker.QueueWarning)
            {
                ts.ApplyColorSchema(RowStyleType.PinkRed);
                ts.Image = Properties.Resources.warning_16;
                ts.Text  = "继续无视长龙购买彩票。出现异常情况请在选项中关闭“忽略排队人数错误”。";
            }
            else
            {
                ts.ApplyColorSchema(RowStyleType.Blue);
                ts.Image = Properties.Resources.tick_16;
                ts.Text  = "准备就绪";
            }

            if (needVc == null)
            {
                await SetAllowOperationAsync(true, true).ConfigureAwait(true);
            }
        }