Exemple #1
0
        private void FormDevice_Load(object sender, EventArgs e)
        {
            this.ControlBox      = false;
            this.FormBorderStyle = FormBorderStyle.None;
            this.WindowState     = FormWindowState.Minimized;
            this.WindowState     = FormWindowState.Maximized;
            /***********************************************/
            using (ASRS_ServiceSoapClient srv = new ASRS_ServiceSoapClient())
            {
                containerVsItemCache = srv.Container_Vs_Items_GetAll().ToList();
            }

            //后台线程,实时刷新库存
            refreshDevice = new Thread(DeviceRead);
            refreshDevice.IsBackground = true;
            refreshDevice.Start();
        }