コード例 #1
0
        private void button_dashang_Click(object sender, EventArgs e)
        {
            double dashang = (double)numericUpDown1.Value;
            var    pwd     = textBox_pwd.Text;

            if (MessageBox.Show($"为确认你并非误操作,请再次确认,你要向软件作者打赏{dashang}链克吗?", "二次确认", MessageBoxButtons.OKCancel) == DialogResult.OK)
            {
                AutoFeedHelper.FeedOneTime("0x365cc7e1ee13579558ec18e4af13233bd91538df", dashang, pwd);
                //delete
            }
        }
コード例 #2
0
        private void FeedOne(MyMonkey4XiuLianDto m, string wallet, string pwd)
        {
            int i = 1;

            foreach (var c in m.FeedList)
            {
                if (ForseStopFeed)
                {
                    _syncContext.Post(Notify, $"{DateTime.Now.ToString("HH:mm:ss")}--用户取消了自动喂养");
                    return;
                }

                _syncContext.Post(Notify, $"{DateTime.Now.ToString("HH:mm:ss")}--正在第{i}次喂养猴子#{m.Id},投食{c} wkc");
                AutoFeedHelper.FeedOneTime(wallet, c, pwd);
                _syncContext.Post(Notify, $"{DateTime.Now.ToString("HH:mm:ss")}--第{i}次喂养猴子#{m.Id},投食{c} wkc 完成");
                i++;
            }
        }