private void InvokeUpdateGlassData(bool noHandle, CGlassInfoDisplayData data)
        {
            if (data == null)
            {
                return;
            }

            UpdateGlassInfoDisplayHandler.Data = data;
            ////if (noHandle == false)
            ////{
            //if (this.InvokeRequired)
            //{
            //    this.Invoke(UpdateMessageHandler.OnUpdateData, noHandle, data);
            //}
            //else
            //{
            //    UpdateHandler2 del = new UpdateHandler2(ShowGlassInfoForm);
            //    this.Invoke(del);
            //}
            ////}

            this.RefreshDgvList(new List <Dictionary <string, string> >()
            {
                data.Data, data.Data2
            }, data.GlassCount);
        }
Beispiel #2
0
        private void InvokeUpdateGlassData(bool noHandle, CGlassInfoDisplayData data)
        {
            if (data == null)
            {
                return;
            }

            UpdateGlassInfoDisplayHandler.Data = data;
            //if (noHandle == false)
            //{
            if (this.InvokeRequired)
            {
                this.Invoke(UpdateMessageHandler.OnUpdateData, noHandle, data);
            }
            else
            {
                UpdateHandler2 del = new UpdateHandler2(ShowGlassInfoForm);
                this.Invoke(del);
            }
            //}
        }