Esempio n. 1
0
        private void buttonTiming_Click(object sender, EventArgs e)
        {
            ActionTiming tt = new ActionTiming
            {
                ActionAt        = actionAt,
                MinimumInterval = minimumInterval,
                ActionTime      = 0,
                mui             = mui
            };

            if (tt.ShowDialog() == DialogResult.OK)
            {
                actionAt        = tt.ActionAt;
                minimumInterval = tt.MinimumInterval;
            }
        }
Esempio n. 2
0
        private void buttonTiming_Click(object sender, EventArgs e)
        {
            ActionTiming tt = new ActionTiming
            {
                ActionAt        = this.transferAt,
                MinimumInterval = this.minimumInterval,
                mui             = this.mui
            };

            var option = this.GetTransferOption();

            if (option != null && !option.TargetPos.IsEmpty)
            {
                int speed = this.TravianData.MarketSpeed == 0 ? 24 : this.TravianData.MarketSpeed;
                tt.ActionTime = (int)(this.CV.Coord * option.TargetPos * 3600 / speed);
            }

            if (tt.ShowDialog() == DialogResult.OK)
            {
                this.transferAt      = tt.ActionAt;
                this.minimumInterval = tt.MinimumInterval;
            }
        }
Esempio n. 3
0
        private void buttonTiming_Click(object sender, EventArgs e)
        {
            ActionTiming tt = new ActionTiming
            {
                ActionAt = actionAt,
                MinimumInterval = minimumInterval,
                ActionTime = 0,
                mui = mui
            };

            //	取得定时发兵的设置
            if (tt.ShowDialog() == DialogResult.OK)
            {
                actionAt = tt.ActionAt;
                minimumInterval = tt.MinimumInterval;
            }
        }
        private void buttonTiming_Click(object sender, EventArgs e)
        {
            ActionTiming tt = new ActionTiming
            {
                ActionAt = this.transferAt,
                MinimumInterval = this.minimumInterval,
                mui = this.mui
            };

            var option = this.GetTransferOption();
            if (option != null && !option.TargetPos.IsEmpty)
            {
                int speed = this.TravianData.MarketSpeed == 0 ? 24 : this.TravianData.MarketSpeed;
                tt.ActionTime = (int) (this.CV.Coord * option.TargetPos * 3600 / speed);
            }

            if (tt.ShowDialog() == DialogResult.OK)
            {
                this.transferAt = tt.ActionAt;
                this.minimumInterval = tt.MinimumInterval;
            }
        }