using Mushiny;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TheMachine.UC;

namespace TheMachine
{
    public partial class Form5 : Form
    {
        System.Timers.Timer CTU_test_timer = new System.Timers.Timer();
        #region 测试
        private void CTU_test_timer_Tick(object sender, EventArgs e)
        {
            List<uint> planway = new List<uint>() { 427, 525, 3001, 3002, 3003, 3004,
                3005, 3006, 3007, 3008, 3009, 3010, 3011, 3012,
                3013, 3014, 3015, 3016, 3017, 3018, 3019, 3020, 539, 487 };
            List<uint> currentway = new List<uint>() { 427, 525, 3001, 3002, 3003, 3004,

                 };
            List<uint> occupyway = new List<uint>() { 427, 525, 3001,

              };
            Color ctuclor = Color.Red;
            Color planclor = Color.Orange;
            Color currentclor = Color.Yellow;
            Color occupyclor = Color.Green;

            uC_AGVMap1.Update_CTU(3037, planway, currentway, occupyway, ctuclor, planclor, currentclor, occupyclor, "正常");

        }
        #endregion
       
        public Form5()
        {
            InitializeComponent();
            
            CTU_test_timer.Enabled = true;
            CTU_test_timer.Elapsed += CTU_test_timer_Tick;
            CTU_test_timer.Interval = 100;
            CTU_test_timer.Start();
        }
    }
}