Beispiel #1
0
        private static bool init = false;//是否已经初始化

        public static void Init()
        {
            if (!init)
            {
                init = true;

                _mSocket = new SocketControl();

                _mMySql = new MySQL();

                _mStools = new SimpleTools();

                _mTaskTools = new TaskTools();

                _mHttpServer = new HttpServerControl();

                _mHttp = new HttpControl();

                _mNDCControl = new NDCControl();

                _mTaskControler = new TaskControler();

                _mRunTask = new RunTask();

                _mForAGVControl = new ForAGVControl();

                _mNDCControl.NoticeWcsMagic  += _mForAGVControl.SubmitAgvMagic;
                _mNDCControl.NoticeWcsOnLoad += _mForAGVControl.SubmitAgvLoading;

                _mForWmsControl = new ForWMSControl();

                _mHttpServer.WmsModelAdd += _mForWmsControl.WriteTaskToWCS;
            }
        }
Beispiel #2
0
 private void runNewTaskToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (RunTask Rt = new RunTask())
     {
         if (Rt.ShowDialog() == DialogResult.OK)
         {
             GetAllProcess();
         }
     }
 }